summaryrefslogtreecommitdiffstats
path: root/pyload/manager/thread/InfoThread.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyload/manager/thread/InfoThread.py')
-rw-r--r--pyload/manager/thread/InfoThread.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/pyload/manager/thread/InfoThread.py b/pyload/manager/thread/InfoThread.py
index 1775e2a86..4edc55545 100644
--- a/pyload/manager/thread/InfoThread.py
+++ b/pyload/manager/thread/InfoThread.py
@@ -190,10 +190,11 @@ class InfoThread(PluginThread):
self.m.log.debug("Run Info Fetching for %s" % pluginname)
for result in plugin.getInfo(process):
#result = [ .. (name, size, status, url) .. ]
- if not type(result) == list: result = [result]
+ if not type(result) == list:
+ result = [result]
for res in result:
- self.m.infoCache[res[3]] = res
+ self.m.infoCache[res[3]] = res #: why don't assign res dict directly?
cb(pluginname, result)