diff options
author | mkaay <mkaay@mkaay.de> | 2010-01-23 18:56:41 +0100 |
---|---|---|
committer | mkaay <mkaay@mkaay.de> | 2010-01-23 18:56:41 +0100 |
commit | 1c6e23e5a0c6719cabac9c60e838a2c1dee17abc (patch) | |
tree | 28c7eb608627aa72b85cdbb80e779222aad7f3e3 /pyLoadCore.py | |
parent | pyLoad 0.3 (diff) | |
download | pyload-1c6e23e5a0c6719cabac9c60e838a2c1dee17abc.tar.xz |
new update url
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:
|