diff options
Diffstat (limited to 'pyLoadCore.py')
-rwxr-xr-x | pyLoadCore.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/pyLoadCore.py b/pyLoadCore.py index 05a487cf8..9a9c0d6ff 100755 --- a/pyLoadCore.py +++ b/pyLoadCore.py @@ -334,7 +334,7 @@ class Core(object): def check_update(self):
try:
if self.config['updates']['search_updates']:
- version_check = Request().load("http://update.pyload.org/index.php?do=dev%s&download=%s" % (CURRENT_VERSION, False))
+ version_check = Request().load("http://get.pyload.org/check/%s/" % (CURRENT_VERSION, ))
if version_check == "":
self.logger.info("No Updates for pyLoad")
return False
@@ -347,8 +347,11 @@ class Core(object): self.last_update_check = time.time()
def install_update(self):
- if self.config['updates']['search_updates']:
- version_check = Request().load("http://update.pyload.org/index.php?do=dev%s&download=%s" % (CURRENT_VERSION, self.core.config['updates']['install_updates']))
+ if self.config['updates']['search_updates']: + if self.core.config['updates']['install_updates']:
+ version_check = Request().load("http://get.pyload.org/get/update/%s/" % (CURRENT_VERSION, )) + else: + version_check = Request().load("http://get.pyload.org/check/%s/" % (CURRENT_VERSION, ))
if version_check == "":
return False
else:
|