diff options
Diffstat (limited to 'pyLoadCore.py')
-rw-r--r-- | pyLoadCore.py | 9 |
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() |