diff options
author | Walter Purcaro <vuolter@gmail.com> | 2014-11-21 18:59:47 +0100 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2014-11-21 18:59:47 +0100 |
commit | 911ef70f5e39444d4b885b79ba825855b54e7606 (patch) | |
tree | 010f1013df5107a24187a34c701d4cec4c64efac /module/PluginThread.py | |
parent | [SimpleHoster] Code cosmetics (diff) | |
download | pyload-911ef70f5e39444d4b885b79ba825855b54e7606.tar.xz |
[SimpleHoster] Fix create_getInfo
Diffstat (limited to 'module/PluginThread.py')
-rw-r--r-- | module/PluginThread.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/module/PluginThread.py b/module/PluginThread.py index 59d2cabc9..051236c3e 100644 --- a/module/PluginThread.py +++ b/module/PluginThread.py @@ -209,7 +209,7 @@ class DownloadThread(PluginThread): if self.m.core.debug: print_exc() - + self.clean(pyfile) continue @@ -244,7 +244,7 @@ class DownloadThread(PluginThread): if self.m.core.debug: print_exc() - + self.m.core.hookManager.downloadFailed(pyfile) self.clean(pyfile) continue @@ -393,7 +393,7 @@ class DecrypterThread(PluginThread): except Abort: self.m.log.info(_("Download aborted: %s") % pyfile.name) pyfile.setStatus("aborted") - + if self.m.core.debug: print_exc() return @@ -630,9 +630,10 @@ 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: + for res in result: #: why don't assign res dict directly? self.m.infoCache[res[3]] = res cb(pluginname, result) |