From 367671e169442d4a7994fffdebdc99b90513c0a2 Mon Sep 17 00:00:00 2001 From: noirscape Date: Fri, 30 Nov 2018 09:56:09 +0100 Subject: [PATCH] 5 times is a cinqlet --- switchguideupdater.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/switchguideupdater.py b/switchguideupdater.py index d3c3f07..040ce8f 100644 --- a/switchguideupdater.py +++ b/switchguideupdater.py @@ -12,7 +12,7 @@ from enum import Enum BASE_URL = 'http://amsupdater.catgirlsin.space/json/' -VERSION = '1.2.3' +VERSION = '1.2.4' class WindowState(Enum): MAIN_MENU = 0 @@ -24,7 +24,7 @@ class WindowState(Enum): SELF_UPDATE_SUCCEEDED = 6 def download_file(remote_name, local_path): - r = urllib.request.urlopen(BASE_URL + remote_name) + r = urllib.request.urlopen(remote_name) if r.getcode() == 200: with open(local_path, 'wb') as output_path: shutil.copyfileobj(r, output_path)