From 1c6e23e5a0c6719cabac9c60e838a2c1dee17abc Mon Sep 17 00:00:00 2001 From: mkaay Date: Sat, 23 Jan 2010 18:56:41 +0100 Subject: new update url --- pyLoadCore.py | 9 ++++++--- 1 file 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: -- cgit v1.2.3