summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-03-20 23:25:03 +0100
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-03-20 23:25:03 +0100
commit7e08d4ccdc0547d223605b3c0aac6d57cc696e19 (patch)
tree2dd23984e87b5be78f6384875664f876546ca331 /module/plugins/hoster
parent[SimpleHoster] Fix checkErrors (diff)
downloadpyload-7e08d4ccdc0547d223605b3c0aac6d57cc696e19.tar.xz
[CatShareNet] getFileInfo -> checkErrors
Diffstat (limited to 'module/plugins/hoster')
-rw-r--r--module/plugins/hoster/CatShareNet.py7
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):