summaryrefslogtreecommitdiffstats
path: root/module/plugins/internal
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2015-01-18 18:28:07 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2015-01-18 18:28:07 +0100
commitdf84a349ce9008ce927461a53d9ead1fdf71a73e (patch)
tree8776f1c3dcd9ddc83a021bfdc87f4a23c1acff3c /module/plugins/internal
parent[NitroflareCom] Update (2) (diff)
downloadpyload-df84a349ce9008ce927461a53d9ead1fdf71a73e.tar.xz
[SimpleHoster] Fix PREMIUM_ONLY_PATTERN handling
Diffstat (limited to 'module/plugins/internal')
-rw-r--r--module/plugins/internal/SimpleHoster.py4
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'):