diff options
| author | 2015-01-18 18:28:07 +0100 | |
|---|---|---|
| committer | 2015-01-18 18:28:07 +0100 | |
| commit | df84a349ce9008ce927461a53d9ead1fdf71a73e (patch) | |
| tree | 8776f1c3dcd9ddc83a021bfdc87f4a23c1acff3c /module/plugins | |
| parent | [NitroflareCom] Update (2) (diff) | |
| download | pyload-df84a349ce9008ce927461a53d9ead1fdf71a73e.tar.xz | |
[SimpleHoster] Fix PREMIUM_ONLY_PATTERN handling
Diffstat (limited to 'module/plugins')
| -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 afbfea1c8..e499f4e47 100644 --- a/module/plugins/internal/SimpleHoster.py +++ b/module/plugins/internal/SimpleHoster.py @@ -219,7 +219,7 @@ def secondsToMidnight(gmt=0):  class SimpleHoster(Hoster):      __name__    = "SimpleHoster"      __type__    = "hoster" -    __version__ = "1.02" +    __version__ = "1.03"      __pattern__ = r'^unmatchable$' @@ -502,7 +502,7 @@ class SimpleHoster(Hoster):              self.logWarning(_("No html code to check"))              return -        if hasattr(self, 'PREMIUM_ONLY_PATTERN') and self.premium and re.search(self.PREMIUM_ONLY_PATTERN, self.html): +        if hasattr(self, 'PREMIUM_ONLY_PATTERN') and not self.premium and re.search(self.PREMIUM_ONLY_PATTERN, self.html):              self.fail(_("Link require a premium account to be handled"))          elif hasattr(self, 'ERROR_PATTERN'): | 
