summaryrefslogtreecommitdiffstats
path: root/pyload/threads/ThreadManager.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-11-26 21:50:02 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-11-26 21:50:02 +0100
commitd43b66838414e219b7ffecfe917b7d4a8354418e (patch)
treebea2492aa4840be34a53bd26064f4c333d25790e /pyload/threads/ThreadManager.py
parentinvoke addons via context menu (diff)
downloadpyload-d43b66838414e219b7ffecfe917b7d4a8354418e.tar.xz
extraction via context menu + progress information working
Diffstat (limited to 'pyload/threads/ThreadManager.py')
-rw-r--r--pyload/threads/ThreadManager.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/pyload/threads/ThreadManager.py b/pyload/threads/ThreadManager.py
index 55cfcbfd2..3132e98e2 100644
--- a/pyload/threads/ThreadManager.py
+++ b/pyload/threads/ThreadManager.py
@@ -27,7 +27,7 @@ from random import choice
from pyload.datatypes.PyFile import PyFile
from pyload.datatypes.OnlineCheck import OnlineCheck
from pyload.network.RequestFactory import getURL
-from pyload.utils import lock, uniqify
+from pyload.utils import lock, uniqify, to_list
from pyload.utils.fs import free_space
from DecrypterThread import DecrypterThread
@@ -118,13 +118,12 @@ class ThreadManager:
def getProgressList(self, user=None):
info = []
- # TODO: local threads can create multiple progresses
for thread in self.threads + self.localThreads:
# skip if not belong to current user
- if user and thread.user != user: continue
+ if user is not None and thread.owner != user: continue
progress = thread.getProgress()
- if progress: info.append(progress)
+ if progress: info.extend(to_list(progress))
return info