summaryrefslogtreecommitdiffstats
path: root/pyLoadCore.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2009-06-19 22:50:37 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2009-06-19 22:50:37 +0200
commite083caef997b87150da03c05194baf8cd17f06a7 (patch)
tree36c64ad71c0ac5d5069d00f03e5cf7ee8ca887e2 /pyLoadCore.py
parentnew pyLoadCli input system (diff)
downloadpyload-e083caef997b87150da03c05194baf8cd17f06a7.tar.xz
some new cli stuff (no interactive functions yet)
Diffstat (limited to 'pyLoadCore.py')
-rw-r--r--pyLoadCore.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/pyLoadCore.py b/pyLoadCore.py
index 2f89b9af6..84d1322dd 100644
--- a/pyLoadCore.py
+++ b/pyLoadCore.py
@@ -221,9 +221,16 @@ class Core(object):
obj = RequestObject()
obj.command = "update"
obj.data = self.get_downloads()
-
+ obj.status = self.server_status()
self.server.push_all(obj)
+ def server_status(self):
+ status = {}
+ status['pause'] = self.thread_list.pause
+ status['queue'] = len(self.file_list.files)
+ return status
+
+
def init_server(self):
self.server = ServerThread(self)
self.server.start()