diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2009-05-29 19:53:46 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2009-05-29 19:53:46 +0200 |
commit | 91a4b6bca46968324d76284d041d4bfc82c5a4fe (patch) | |
tree | bacece9dbe1e8834b081644e80a046dddce1534b /Core.py | |
parent | translation example added (diff) | |
download | pyload-91a4b6bca46968324d76284d041d4bfc82c5a4fe.tar.xz |
requestobject and working interface to the core
Diffstat (limited to 'Core.py')
-rw-r--r-- | Core.py | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -212,6 +212,18 @@ class Core(object): else: return False + def get_downloads(self): #only for debuging?!? + list = [] + for pyfile in self.thread_list.py_downloading: + download = {} + download['name'] = pyfile.status.filename + download['speed'] = pyfile.status.get_speed() + download['eta'] = pyfile.status.get_ETA() + list.append(download) + + return list + + def _test_print_status(self): if self.thread_list.py_downloading: |