diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-08-10 14:01:40 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-08-10 14:01:40 +0200 |
commit | 85f50861e44565a8ce722cbb1fed2c98f9e5d256 (patch) | |
tree | 38ad593a1e574e8c6a98123e7e7ebac0a785e25e /module/FileDatabase.py | |
parent | little fix (diff) | |
download | pyload-85f50861e44565a8ce722cbb1fed2c98f9e5d256.tar.xz |
webservers working, hotfolder hook
Diffstat (limited to 'module/FileDatabase.py')
-rw-r--r-- | module/FileDatabase.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/module/FileDatabase.py b/module/FileDatabase.py index 442a15320..8a334ea58 100644 --- a/module/FileDatabase.py +++ b/module/FileDatabase.py @@ -46,7 +46,8 @@ statusMap = { "decrypting": 10, "custom": 11, "downloading": 12, - "processing": 13 + "processing": 13, + "unknow": 14 } def formatSize(size): @@ -74,7 +75,7 @@ class FileHandler: self.core = core # translations - self.statusMsg = [_("finished"), _("offline"), _("online"), _("queued"), _("checking"), _("waiting"), _("reconnected"), _("starting"),_("failed"), _("aborted"), _("decrypting"), _("custom"),_("downloading"), _("processing")] + self.statusMsg = [_("finished"), _("offline"), _("online"), _("queued"), _("checking"), _("waiting"), _("reconnected"), _("starting"),_("failed"), _("aborted"), _("decrypting"), _("custom"),_("downloading"), _("processing"), _("unknown")] self.cache = {} #holds instances for files self.packageCache = {} # same for packages @@ -759,7 +760,7 @@ class FileDatabaseBackend(Thread): cmd += ")" - cmd = "SELECT l.id FROM links as l INNER JOIN packages as p ON l.package=p.id WHERE p.queue=1 AND l.plugin NOT IN %s AND l.status IN (2,3,6) ORDER BY p.packageorder, l.linkorder LIMIT 5" % cmd + cmd = "SELECT l.id FROM links as l INNER JOIN packages as p ON l.package=p.id WHERE p.queue=1 AND l.plugin NOT IN %s AND l.status IN (2,3,6,14) ORDER BY p.packageorder, l.linkorder LIMIT 5" % cmd self.c.execute(cmd) # very bad! |