From f89a0fcfbcca01067175ba7a67c14eb95bd60d6f Mon Sep 17 00:00:00 2001 From: mkaay Date: Wed, 16 Dec 2009 17:13:46 +0100 Subject: gui server status --- module/file_list.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'module') diff --git a/module/file_list.py b/module/file_list.py index ea4fd5767..ae168900b 100644 --- a/module/file_list.py +++ b/module/file_list.py @@ -132,6 +132,9 @@ class File_List(object): files.append(pyfile) return files + def countDownloads(self): + return len(self.getDownloadList()) + def getFileInfo(self, id): try: n, pyfile = self.collector._getFileFromID(id) @@ -147,6 +150,7 @@ class File_List(object): info["status_filename"] = pyfile.status.filename info["status_error"] = pyfile.status.error info["active"] = pyfile.active + info["plugin"] = pyfile.plugin.props['name'] return info class pyLoadCollector(): -- cgit v1.2.3