From 567c1d512e2e7452969d42d272d600d694e40058 Mon Sep 17 00:00:00 2001 From: zoidberg10 Date: Fri, 20 Jan 2012 01:58:41 +0100 Subject: fix threadmanager limitdl, add zevera.com --- module/threads/ThreadManager.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'module/threads/ThreadManager.py') 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: -- cgit v1.2.3