summaryrefslogtreecommitdiffstats
path: root/pyLoadCore.py
diff options
context:
space:
mode:
authorGravatar mkaay <mkaay@mkaay.de> 2010-03-20 00:10:28 +0100
committerGravatar mkaay <mkaay@mkaay.de> 2010-03-20 00:10:28 +0100
commitfa8727d27172ffe5d1f5d16f243a1e9c23a03100 (patch)
tree1e8b31d31df2c9082376496a1c40f497bde852c4 /pyLoadCore.py
parentcore ssl fix, nginx support, https for lighttpd and nginx (diff)
downloadpyload-fa8727d27172ffe5d1f5d16f243a1e9c23a03100.tar.xz
fixed #86
Diffstat (limited to 'pyLoadCore.py')
-rw-r--r--pyLoadCore.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/pyLoadCore.py b/pyLoadCore.py
index 9501631f8..ca91187d9 100644
--- a/pyLoadCore.py
+++ b/pyLoadCore.py
@@ -20,6 +20,7 @@
@author: mkaay
@version: v0.3.2
"""
+
CURRENT_VERSION = '0.3.2'
from getopt import getopt
@@ -60,7 +61,7 @@ from module.HookManager import HookManager
from module.PullEvents import PullManager
from module.XMLConfigParser import XMLConfigParser
from module.file_list import File_List
-from module.network.Request import Request
+from module.network.Request import getURL
import module.remote.SecureXMLRPCServer as Server
from module.thread_list import Thread_List
from module.web.ServerThread import WebServer
@@ -354,7 +355,7 @@ class Core(object):
def check_update(self):
try:
if self.config['updates']['search_updates']:
- version_check = Request().load("http://get.pyload.org/check/%s/" % (CURRENT_VERSION, ))
+ version_check = getURL("http://get.pyload.org/check/%s/" % (CURRENT_VERSION, ))
if version_check == "":
self.logger.info(_("No Updates for pyLoad"))
return False
@@ -372,9 +373,9 @@ class Core(object):
try:
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, ))
+ version_check = getURL("http://get.pyload.org/get/update/%s/" % (CURRENT_VERSION, ))
else:
- version_check = Request().load("http://get.pyload.org/check/%s/" % (CURRENT_VERSION, ))
+ version_check = getURL("http://get.pyload.org/check/%s/" % (CURRENT_VERSION, ))
if version_check == "":
return False
else: