summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar mkaay <mkaay@mkaay.de> 2010-10-06 22:48:46 +0200
committerGravatar mkaay <mkaay@mkaay.de> 2010-10-06 22:48:46 +0200
commit7cb864cb1398e09c5d68354865db282aea734b38 (patch)
tree6acb1b19c3db2b1193a129fbfd25ea8ea72e74ed
parentaccount config fix (diff)
downloadpyload-7cb864cb1398e09c5d68354865db282aea734b38.tar.xz
decrypter retry fix, status fix with pycurl error
-rw-r--r--module/PluginThread.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/module/PluginThread.py b/module/PluginThread.py
index ec4b3108e..c9f353dea 100644
--- a/module/PluginThread.py
+++ b/module/PluginThread.py
@@ -235,7 +235,8 @@ class DownloadThread(PluginThread):
continue
else:
- print "pycurl error", code, msg
+ pyfile.setStatus("failed")
+ self.m.log.error("pycurl error %s: %s" (code, msg))
if self.m.core.debug:
print_exc()
self.writeDebugReport(pyfile)
@@ -332,6 +333,10 @@ class DecrypterThread(PluginThread):
return
+ except Retry:
+
+ self.m.log.info(_("Retrying %s") % self.active.name)
+ self.active.plugin.preprocessing(self)
except Exception, e:
@@ -426,4 +431,4 @@ class InfoThread(PluginThread):
self.m.core.files.save()
except Exception, e:
self.m.core.log.debug("Info Fetching for %s failed | %s" % (pluginname,str) )
- \ No newline at end of file
+