summaryrefslogtreecommitdiffstats
path: root/Core.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2009-05-29 19:53:46 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2009-05-29 19:53:46 +0200
commit91a4b6bca46968324d76284d041d4bfc82c5a4fe (patch)
treebacece9dbe1e8834b081644e80a046dddce1534b /Core.py
parenttranslation example added (diff)
downloadpyload-91a4b6bca46968324d76284d041d4bfc82c5a4fe.tar.xz
requestobject and working interface to the core
Diffstat (limited to 'Core.py')
-rw-r--r--Core.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/Core.py b/Core.py
index 04e05ae32..b7fe7d079 100644
--- a/Core.py
+++ b/Core.py
@@ -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: