diff options
author | Walter Purcaro <vuolter@gmail.com> | 2014-10-19 14:52:42 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2014-10-19 14:52:42 +0200 |
commit | 2ae91b81a2f12a1c9b1f78524df78a2b3f1ef494 (patch) | |
tree | c33c610c953a7833adfe8e357417e73b1d5231d4 /module/plugins/hoster/MediafireCom.py | |
parent | parseError -> error now calls Fail instead Exception (diff) | |
download | pyload-2ae91b81a2f12a1c9b1f78524df78a2b3f1ef494.tar.xz |
Update hosters to self.error
Diffstat (limited to 'module/plugins/hoster/MediafireCom.py')
-rw-r--r-- | module/plugins/hoster/MediafireCom.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/module/plugins/hoster/MediafireCom.py b/module/plugins/hoster/MediafireCom.py index 6d29d4db3..c2581aa9f 100644 --- a/module/plugins/hoster/MediafireCom.py +++ b/module/plugins/hoster/MediafireCom.py @@ -47,7 +47,7 @@ def getInfo(urls): class MediafireCom(SimpleHoster): __name__ = "MediafireCom" __type__ = "hoster" - __version__ = "0.79" + __version__ = "0.80" __pattern__ = r'http://(?:www\.)?mediafire\.com/(file/|(view/?|download\.php)?\?)(\w{11}|\w{15})($|/)' @@ -105,7 +105,7 @@ class MediafireCom(SimpleHoster): m = re.search(r'kNO = r"(http://.*?)";', self.html) if m is None: - self.parseError("Download URL") + self.error("Download URL") download_url = m.group(1) self.logDebug("DOWNLOAD LINK:", download_url) @@ -116,7 +116,7 @@ class MediafireCom(SimpleHoster): captcha_key = solvemedia.detect_key() if captcha_key is None: - self.parseError("SolveMedia key not found") + self.error("SolveMedia key not found") captcha_challenge, captcha_response = solvemedia.challenge(captcha_key) self.html = self.load(self.url, post={"adcopy_challenge": captcha_challenge, |