diff options
author | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-05-18 05:25:09 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-05-18 05:25:09 +0200 |
commit | 14600aa22812176c4f61ffcfd4ae3b0ee62ae368 (patch) | |
tree | 8bdd5b4e5e88c50564f5ce4ce9d1743e27fab01e /module/plugins/hoster/CloudzillaTo.py | |
parent | [SimpleHoster] Improve checkErrors (diff) | |
download | pyload-14600aa22812176c4f61ffcfd4ae3b0ee62ae368.tar.xz |
Spare plugins updates
Diffstat (limited to 'module/plugins/hoster/CloudzillaTo.py')
-rw-r--r-- | module/plugins/hoster/CloudzillaTo.py | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/module/plugins/hoster/CloudzillaTo.py b/module/plugins/hoster/CloudzillaTo.py index 362a8d953..09453137d 100644 --- a/module/plugins/hoster/CloudzillaTo.py +++ b/module/plugins/hoster/CloudzillaTo.py @@ -8,7 +8,7 @@ from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo class CloudzillaTo(SimpleHoster): __name__ = "CloudzillaTo" __type__ = "hoster" - __version__ = "0.06" + __version__ = "0.07" __pattern__ = r'http://(?:www\.)?cloudzilla\.to/share/file/(?P<ID>[\w^_]+)' __config__ = [("use_premium", "bool", "Use premium account if available", True)] @@ -25,12 +25,17 @@ class CloudzillaTo(SimpleHoster): def checkErrors(self): - m = re.search(self.PASSWORD_PATTERN, self.html) - if m: - self.html = self.load(self.pyfile.url, get={'key': self.getPassword()}) + if re.search(self.PASSWORD_PATTERN, self.html): + pw = self.getPassword() + if pw: + self.html = self.load(self.pyfile.url, get={'key': pw}) + else: + self.fail(_("Missing password")) if re.search(self.PASSWORD_PATTERN, self.html): self.retry(reason="Wrong password") + else: + return super(CloudzillaTo, self).checkErrors() def handleFree(self, pyfile): |