mirror of
https://github.com/zoffline/zwift-offline.git
synced 2025-12-12 15:49:40 -08:00
Enable schedules proxy for Android
This commit is contained in:
@@ -1713,6 +1713,12 @@ def custom_style(filename):
|
||||
def static_web_launcher(filename):
|
||||
return send_from_directory('%s/cdn/static/web/launcher' % SCRIPT_DIR, filename)
|
||||
|
||||
# Android uses https for schedules, redirect to http to enable proxy
|
||||
@app.route('/gameassets/MapSchedule_v2.xml')
|
||||
@app.route('/gameassets/PortalRoadSchedule_v1.xml')
|
||||
def gameassets_schedule():
|
||||
return redirect('http://cdn.zwift.com%s' % request.path)
|
||||
|
||||
|
||||
@app.route('/api/telemetry/config', methods=['GET'])
|
||||
def api_telemetry_config():
|
||||
|
||||
Reference in New Issue
Block a user