From 7cb864cb1398e09c5d68354865db282aea734b38 Mon Sep 17 00:00:00 2001 From: mkaay Date: Wed, 6 Oct 2010 22:48:46 +0200 Subject: decrypter retry fix, status fix with pycurl error --- module/PluginThread.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'module/PluginThread.py') 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 + -- cgit v1.2.3