From 8cc69c81bf3aedfbe13bda1cd4b3f0ebd10670db Mon Sep 17 00:00:00 2001 From: zoffline Date: Thu, 30 Aug 2018 23:28:49 -0400 Subject: [PATCH] Pass a "real" expected argument when launching Zwift Maybe fix mac "manual" launch (issue #6). Still need to test. --- auth_server.py | 2 +- cdn/static/web/launcher/embed-noauto.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/auth_server.py b/auth_server.py index 08ed40b..f7fff59 100755 --- a/auth_server.py +++ b/auth_server.py @@ -37,7 +37,7 @@ def launch_zwift(): if not os.path.exists(AUTOLAUNCH_FILE): return redirect(NOAUTO_EMBED, 302) else: - return redirect("http://zwift/?code=abc", 302) + return redirect("http://zwift/?code=zwift_refresh_token%s" % REFRESH_TOKEN, 302) #@app.route('/auth/realms/zwift/protocol/openid-connect/logout', methods=['GET']) diff --git a/cdn/static/web/launcher/embed-noauto.html b/cdn/static/web/launcher/embed-noauto.html index 0d1e0b3..10d9515 100644 --- a/cdn/static/web/launcher/embed-noauto.html +++ b/cdn/static/web/launcher/embed-noauto.html @@ -5,7 +5,7 @@

zoffline Launcher



-

Click here to start Zwift

+

Click here to start Zwift



To automatically launch Zwift and skip this step create a file called "auto_launch.txt" inside zoffline's storage directory.