summaryrefslogtreecommitdiffstats
path: root/pyLoadCore.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2009-12-19 15:13:10 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2009-12-19 15:13:10 +0100
commitadcc953b4dd2dce1f91bd7cd11105e9f0653f704 (patch)
tree99f7d9dd6111664d7555a8d8dba28158983ad3e2 /pyLoadCore.py
parentcleaned (diff)
downloadpyload-adcc953b4dd2dce1f91bd7cd11105e9f0653f704.tar.xz
fixed reconnect
Diffstat (limited to 'pyLoadCore.py')
-rwxr-xr-xpyLoadCore.py23
1 files changed, 12 insertions, 11 deletions
diff --git a/pyLoadCore.py b/pyLoadCore.py
index 7b7e2754d..946df9915 100755
--- a/pyLoadCore.py
+++ b/pyLoadCore.py
@@ -306,11 +306,22 @@ class Core(object):
#~ self.webserver = WebServer(self)
#~ if self.config['webinterface']['activated']:
#~ self.webserver.start()
+
+
+ def is_download_time(self):
+ start = self.core.config['downloadTime']['start'].split(":")
+ end = self.core.config['downloadTime']['end'].split(":")
+ return self.core.compare_time(start, end)
+
+ def is_reconnect_time(self):
+ start = self.core.config['reconnectTime']['start'].split(":")
+ end = self.core.config['reconnectTime']['end'].split(":")
+ return self.compare_time(start, end)
+
####################################
########## XMLRPC Methods ##########
####################################
-
class ServerMethods():
def __init__(self, core):
self.core = core
@@ -472,16 +483,6 @@ class ServerMethods():
# self.core.file_list.move(id, 1)
# self.core.file_list.save()
- def is_time_download(self):
- start = self.core.config['downloadTime']['start'].split(":")
- end = self.core.config['downloadTime']['end'].split(":")
- return self.core.compare_time(start, end)
-
- def is_time_reconnect(self):
- start = self.core.config['reconnectTime']['start'].split(":")
- end = self.core.config['reconnectTime']['end'].split(":")
- return self.compare_time(start, end)
-
if __name__ == "__main__":
pyload_core = Core()
try: