diff options
| author | 2015-06-08 11:18:48 +0200 | |
|---|---|---|
| committer | 2015-06-08 11:18:48 +0200 | |
| commit | 2f114a7359d1702c4a22e16ea2a99b132d151d12 (patch) | |
| tree | 2970be122799471dff17803f51f6591996eca703 /module | |
| parent | [SimpleHoster] Fixup (diff) | |
| download | pyload-2f114a7359d1702c4a22e16ea2a99b132d151d12.tar.xz | |
Fix https://github.com/pyload/pyload/issues/1460
Diffstat (limited to 'module')
| -rw-r--r-- | module/plugins/internal/SimpleHoster.py | 14 | 
1 files changed, 7 insertions, 7 deletions
| diff --git a/module/plugins/internal/SimpleHoster.py b/module/plugins/internal/SimpleHoster.py index e04d9d7f5..828367c97 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.58" +    __version__ = "1.59"      __pattern__ = r'^unmatchable$'      __config__  = [("use_premium", "bool", "Use premium account if available"          , True), @@ -587,12 +587,12 @@ class SimpleHoster(Hoster):              self.logDebug(_("Checking last downloaded file with custom rules"))              if self.CHECK_FILE: -                rules = [r, getattr(self, a) for r, a in (("IP blocked"    , "IP_BLOCKED_PATTERN"  ), -                                                          ("Download limit", "DL_LIMIT_PATTERN"    ), -                                                          ("Size limit"    , "SIZE_LIMIT_PATTERN"  ), -                                                          ("Error"         , "ERROR_PATTERN"       ), -                                                          ("Premium only"  , "PREMIUM_ONLY_PATTERN"), -                                                          ("Wait error"    , "WAIT_PATTERN"        ))] +                rules = [(r, getattr(self, a)) for r, a in (("IP blocked"    , "IP_BLOCKED_PATTERN"  ), +                                                            ("Download limit", "DL_LIMIT_PATTERN"    ), +                                                            ("Size limit"    , "SIZE_LIMIT_PATTERN"  ), +                                                            ("Error"         , "ERROR_PATTERN"       ), +                                                            ("Premium only"  , "PREMIUM_ONLY_PATTERN"), +                                                            ("Wait error"    , "WAIT_PATTERN"        ))]                  self.FILE_ERRORS.extend(rules)              for r, p in self.FILE_ERRORS: | 
