From 91a4b6bca46968324d76284d041d4bfc82c5a4fe Mon Sep 17 00:00:00 2001 From: RaNaN Date: Fri, 29 May 2009 19:53:46 +0200 Subject: requestobject and working interface to the core --- Core.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'Core.py') 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: -- cgit v1.2.3