summaryrefslogtreecommitdiffstats
path: root/module/threads/ThreadManager.py
diff options
context:
space:
mode:
authorGravatar zoidberg10 <zoidberg@mujmail.cz> 2012-01-20 01:58:41 +0100
committerGravatar zoidberg10 <zoidberg@mujmail.cz> 2012-01-20 01:58:41 +0100
commit567c1d512e2e7452969d42d272d600d694e40058 (patch)
tree1debc1a4ca81f09d4c2fb7c77791c345d5eb0577 /module/threads/ThreadManager.py
parentfix cnl for localhost domain (diff)
downloadpyload-567c1d512e2e7452969d42d272d600d694e40058.tar.xz
fix threadmanager limitdl, add zevera.com
Diffstat (limited to 'module/threads/ThreadManager.py')
-rw-r--r--module/threads/ThreadManager.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/module/threads/ThreadManager.py b/module/threads/ThreadManager.py
index 6a5096b8c..a42d6df16 100644
--- a/module/threads/ThreadManager.py
+++ b/module/threads/ThreadManager.py
@@ -266,12 +266,8 @@ class ThreadManager:
inuse = uniqify([(x.active.pluginname, x.active.plugin.getDownloadLimit()) for x in self.threads if x.active and x.active.hasPlugin()])
inuse = map(lambda x : (x[0], x[1], len([y for y in self.threads if y.active and y.active.pluginname == x[0]])) ,inuse)
- onlimit = [x[0] for x in inuse if 0 < x[1] <= x[2]]
-
- occ = [x.active.pluginname for x in self.threads if x.active and x.active.hasPlugin() and not x.active.plugin.multiDL] + onlimit
+ occ = tuple(sorted([x[0] for x in inuse if 0 < x[1] <= x[2]]))
- occ.sort()
- occ = tuple(uniqify(occ))
job = self.core.files.getJob(occ)
if job:
try: