diff options
author | Walter Purcaro <vuolter@gmail.com> | 2015-01-02 02:49:26 +0100 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2015-01-02 02:49:26 +0100 |
commit | ea58af3c625d90aec6becfd943289e42e4a71a9a (patch) | |
tree | edcd4d1ed44b3a7efd887ceed90c99173004b863 /module/plugins/internal/SimpleHoster.py | |
parent | [MultiHook] Store account type (diff) | |
download | pyload-ea58af3c625d90aec6becfd943289e42e4a71a9a.tar.xz |
Code cosmetics
Diffstat (limited to 'module/plugins/internal/SimpleHoster.py')
-rw-r--r-- | module/plugins/internal/SimpleHoster.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/module/plugins/internal/SimpleHoster.py b/module/plugins/internal/SimpleHoster.py index 51891c3c6..7bab78ce8 100644 --- a/module/plugins/internal/SimpleHoster.py +++ b/module/plugins/internal/SimpleHoster.py @@ -447,13 +447,13 @@ class SimpleHoster(Hoster): if hasattr(self, 'PREMIUM_ONLY_PATTERN') and self.premium and re.search(self.PREMIUM_ONLY_PATTERN, self.html): self.fail(_("Link require a premium account to be handled")) - if hasattr(self, 'ERROR_PATTERN'): + elif hasattr(self, 'ERROR_PATTERN'): m = re.search(self.ERROR_PATTERN, self.html) if m: errmsg = self.info['error'] = m.group(1) self.error(errmsg) - if hasattr(self, 'WAIT_PATTERN'): + elif hasattr(self, 'WAIT_PATTERN'): m = re.search(self.WAIT_PATTERN, self.html) if m: wait_time = sum([int(v) * {"hr": 3600, "hour": 3600, "min": 60, "sec": 1}[u.lower()] for v, u in |