From 545a0f44af810f708bbe2f5ec45058aa6c44768e Mon Sep 17 00:00:00 2001 From: CMDR-Kiel42 Date: Sun, 30 Jun 2019 21:44:42 +0200 Subject: [PATCH] Use the proper URL --- load.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/load.py b/load.py index 71ca479..48a9dcb 100644 --- a/load.py +++ b/load.py @@ -13,7 +13,7 @@ if sys.platform.startswith('linux'): this = sys.modules[__name__] -this.plugin_version = "1.1.0" +this.plugin_version = "1.0.0" this.update_available = False this.next_stop = "No route planned" this.route = [] @@ -25,12 +25,11 @@ this.offset = 1 def plugin_start(plugin_dir): # Check for newer versions - url = "https://raw.githubusercontent.com/CMDR-Kiel42/EDMC_SpanshRouter/New_buttons_and_update/version.json" + url = "https://raw.githubusercontent.com/CMDR-Kiel42/EDMC_SpanshRouter/master/version.json" response = urllib.urlopen(url) latest_version = response.read() - # if response.code == 200 and this.plugin_version != latest_version: - if this.plugin_version != latest_version: + if response.code == 200 and this.plugin_version != latest_version: this.update_available = True this.save_route_path = os.path.join(plugin_dir, 'route.csv')