summaryrefslogtreecommitdiffstats
path: root/module/thread_list.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-01-22 19:21:59 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-01-22 19:21:59 +0100
commitf0914124436b8f66d296ef0d3d0e0f289f5a1aa6 (patch)
treec9d9243e06cb5bdb685b7c6338ccaf4e82ec9104 /module/thread_list.py
parentsome new CLi functions (diff)
downloadpyload-f0914124436b8f66d296ef0d3d0e0f289f5a1aa6.tar.xz
some final tweaks
Diffstat (limited to 'module/thread_list.py')
-rw-r--r--module/thread_list.py11
1 files changed, 5 insertions, 6 deletions
diff --git a/module/thread_list.py b/module/thread_list.py
index c8580fece..9211c7c2e 100644
--- a/module/thread_list.py
+++ b/module/thread_list.py
@@ -40,7 +40,8 @@ class Thread_List(object):
self.reconnecting = False
self.select_thread()
- self.speedManager = self.SpeedManager(self)
+ if self.parent.config['general']['download_speed_limit'] != 0:
+ self.speedManager = self.SpeedManager(self)
def create_thread(self):
""" creates thread for Py_Load_File and append thread to self.threads
@@ -69,12 +70,10 @@ class Thread_List(object):
self.lock.acquire()
pyfile = None
- for f in self.list.getDownloadList():
- if not f.modul.__name__ in self.occ_plugins:
- pyfile = f
- break
+ pyfiles = self.list.getDownloadList(self.occ_plugins)
- if pyfile:
+ if pyfiles:
+ pyfile = pyfiles[0]
self.py_downloading.append(pyfile)
self.parent.hookManager.downloadStarts(pyfile)
if not pyfile.plugin.multi_dl: