diff options
author | 2013-03-12 18:15:36 +0100 | |
---|---|---|
committer | 2013-03-12 18:15:36 +0100 | |
commit | d2b45c5442aeb0e02f251916ae1beb06830ef4c1 (patch) | |
tree | b5587ad618f0780c7e7443195cda652d9a2eadbb /module/api | |
parent | renamed most events, push events to webui (diff) | |
download | pyload-d2b45c5442aeb0e02f251916ae1beb06830ef4c1.tar.xz |
render download progress
Diffstat (limited to 'module/api')
-rw-r--r-- | module/api/CoreApi.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/module/api/CoreApi.py b/module/api/CoreApi.py index a86197813..d75fe6ad6 100644 --- a/module/api/CoreApi.py +++ b/module/api/CoreApi.py @@ -39,8 +39,8 @@ class CoreApi(ApiComponent): self.core.threadManager.pause, self.core.config['reconnect']['activated'] and self.isTimeReconnect()) - # TODO multi user - for pyfile in self.core.threadManager.getActiveDownloads(): + + for pyfile in self.core.threadManager.getActiveDownloads(self.primaryUID): serverStatus.speed += pyfile.getSpeed() #bytes/s return serverStatus @@ -51,7 +51,7 @@ class CoreApi(ApiComponent): :rtype: list of :class:`ProgressInfo` """ - pass + return self.core.threadManager.getProgressList(self.primaryUID) def pauseServer(self): """Pause server: It won't start any new downloads, but nothing gets aborted.""" |