summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/FastshareCz.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-10-19 14:52:42 +0200
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-10-19 14:52:42 +0200
commit2ae91b81a2f12a1c9b1f78524df78a2b3f1ef494 (patch)
treec33c610c953a7833adfe8e357417e73b1d5231d4 /module/plugins/hoster/FastshareCz.py
parentparseError -> error now calls Fail instead Exception (diff)
downloadpyload-2ae91b81a2f12a1c9b1f78524df78a2b3f1ef494.tar.xz
Update hosters to self.error
Diffstat (limited to 'module/plugins/hoster/FastshareCz.py')
-rw-r--r--module/plugins/hoster/FastshareCz.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/module/plugins/hoster/FastshareCz.py b/module/plugins/hoster/FastshareCz.py
index 8c00aeef4..337977095 100644
--- a/module/plugins/hoster/FastshareCz.py
+++ b/module/plugins/hoster/FastshareCz.py
@@ -13,7 +13,7 @@ from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo
class FastshareCz(SimpleHoster):
__name__ = "FastshareCz"
__type__ = "hoster"
- __version__ = "0.22"
+ __version__ = "0.23"
__pattern__ = r'http://(?:www\.)?fastshare\.cz/\d+/.+'
@@ -44,7 +44,7 @@ class FastshareCz(SimpleHoster):
if m:
action, captcha_src = m.groups()
else:
- self.parseError("Free URL")
+ self.error("Free URL")
baseurl = "http://www.fastshare.cz"
captcha = self.decryptCaptcha(urljoin(baseurl, captcha_src))
@@ -77,7 +77,7 @@ class FastshareCz(SimpleHoster):
if m:
url = m.group(1)
else:
- self.parseError("Premium URL")
+ self.error("Premium URL")
self.logDebug("PREMIUM URL: " + url)
self.download(url, disposition=True)