diff options
author | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-03-20 23:25:03 +0100 |
---|---|---|
committer | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-03-20 23:25:03 +0100 |
commit | 7e08d4ccdc0547d223605b3c0aac6d57cc696e19 (patch) | |
tree | 2dd23984e87b5be78f6384875664f876546ca331 | |
parent | [SimpleHoster] Fix checkErrors (diff) | |
download | pyload-7e08d4ccdc0547d223605b3c0aac6d57cc696e19.tar.xz |
[CatShareNet] getFileInfo -> checkErrors
-rw-r--r-- | module/plugins/hoster/CatShareNet.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/module/plugins/hoster/CatShareNet.py b/module/plugins/hoster/CatShareNet.py index 125e63481..bda9d27ae 100644 --- a/module/plugins/hoster/CatShareNet.py +++ b/module/plugins/hoster/CatShareNet.py @@ -9,7 +9,7 @@ from module.plugins.internal.CaptchaService import ReCaptcha class CatShareNet(SimpleHoster): __name__ = "CatShareNet" __type__ = "hoster" - __version__ = "0.11" + __version__ = "0.12" __pattern__ = r'http://(?:www\.)?catshare\.net/\w{16}' @@ -36,11 +36,12 @@ class CatShareNet(SimpleHoster): self.resumeDownload = True - def getFileInfo(self): + def checkErrors(self): m = re.search(self.IP_BLOCKED_PATTERN, self.html) if m: self.fail(_("Only connections from Polish IP address are allowed")) - return super(CatShareNet, self).getFileInfo() + + return super(CatShareNet, self).checkErrors() def handleFree(self, pyfile): |