summaryrefslogtreecommitdiffstats
path: root/module/file_list.py
diff options
context:
space:
mode:
authorGravatar mkaay <mkaay@mkaay.de> 2009-12-16 17:13:46 +0100
committerGravatar mkaay <mkaay@mkaay.de> 2009-12-16 17:13:46 +0100
commitf89a0fcfbcca01067175ba7a67c14eb95bd60d6f (patch)
tree8de765342ec8e967e5e8b2b4ee453f3239d85032 /module/file_list.py
parentmerged (diff)
downloadpyload-f89a0fcfbcca01067175ba7a67c14eb95bd60d6f.tar.xz
gui server status
Diffstat (limited to 'module/file_list.py')
-rw-r--r--module/file_list.py4
1 files changed, 4 insertions, 0 deletions
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():