diff options
author | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-05-22 22:49:11 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-05-22 22:49:11 +0200 |
commit | 9bb3bff1a97c11ee887446d24015d0def499e18c (patch) | |
tree | 2231377de6c369bac558a6c530e5337a9b3aba75 /module/plugins/internal | |
parent | [SimpleHoster] Improve checkErrors (diff) | |
download | pyload-9bb3bff1a97c11ee887446d24015d0def499e18c.tar.xz |
[SimpleHoster] Fix captcha retrying
Diffstat (limited to 'module/plugins/internal')
-rw-r--r-- | module/plugins/internal/SimpleHoster.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/module/plugins/internal/SimpleHoster.py b/module/plugins/internal/SimpleHoster.py index ff718984e..11c6c64f2 100644 --- a/module/plugins/internal/SimpleHoster.py +++ b/module/plugins/internal/SimpleHoster.py @@ -239,7 +239,7 @@ def secondsToMidnight(gmt=0): class SimpleHoster(Hoster): __name__ = "SimpleHoster" __type__ = "hoster" - __version__ = "1.47" + __version__ = "1.48" __pattern__ = r'^unmatchable$' __config__ = [("use_premium", "bool", "Use premium account if available" , True), @@ -492,9 +492,13 @@ class SimpleHoster(Hoster): self.checkFile() except Fail, e: #@TODO: Move to PluginThread in 0.4.10 - if self.getConfig('fallback', True) and self.premium: + if str(e) == _("No captcha result obtained in appropiate time by any of the plugins."): #@TODO: Fix in 0.4.10 + self.checkFile() + + elif self.getConfig('fallback', True) and self.premium: self.logWarning(_("Premium download failed"), e) self.retryFree() + else: raise Fail(e) |