diff options
-rw-r--r-- | module/plugins/internal/MultiHoster.py | 3 | ||||
-rw-r--r-- | module/plugins/internal/SimpleHoster.py | 11 |
2 files changed, 8 insertions, 6 deletions
diff --git a/module/plugins/internal/MultiHoster.py b/module/plugins/internal/MultiHoster.py index fb76c58f4..350397f8b 100644 --- a/module/plugins/internal/MultiHoster.py +++ b/module/plugins/internal/MultiHoster.py @@ -9,7 +9,7 @@ from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo, r class MultiHoster(SimpleHoster): __name__ = "MultiHoster" __type__ = "hoster" - __version__ = "0.38" + __version__ = "0.39" __pattern__ = r'^unmatchable$' __config__ = [("use_premium" , "bool", "Use premium account if available" , True), @@ -82,6 +82,7 @@ class MultiHoster(SimpleHoster): except Fail, e: #@TODO: Move to PluginThread in 0.4.10 if self.premium: + self.logWarning(_("Premium download failed")) self.retryFree() elif self.getConfig("revertfailed", True) \ diff --git a/module/plugins/internal/SimpleHoster.py b/module/plugins/internal/SimpleHoster.py index 047d9edde..8a3381c53 100644 --- a/module/plugins/internal/SimpleHoster.py +++ b/module/plugins/internal/SimpleHoster.py @@ -246,7 +246,7 @@ def secondsToMidnight(gmt=0): class SimpleHoster(Hoster): __name__ = "SimpleHoster" __type__ = "hoster" - __version__ = "1.28" + __version__ = "1.29" __pattern__ = r'^unmatchable$' __config__ = [("use_premium", "bool", "Use premium account if available", True)] @@ -491,6 +491,7 @@ class SimpleHoster(Hoster): except Fail, e: #@TODO: Move to PluginThread in 0.4.10 if self.premium: + self.logWarning(_("Premium download failed")) self.retryFree() else: raise Fail(e) @@ -567,15 +568,15 @@ class SimpleHoster(Hoster): self.info['error'] = errmsg - if "min" in errmsg: - self.wait(1 * 60) - - elif "hour" in errmsg: + if "hour" in errmsg: self.wait(1 * 60 * 60, True) elif re.search("da(il)?y|today", errmsg): self.wait(secondsToMidnight(gmt=2), True) + elif "minute" in errmsg: + self.wait(1 * 60) + else: self.error(errmsg) |