diff options
author | zapp-brannigan <zapp-brannigan@users.noreply.github.com> | 2015-05-27 18:37:56 +0200 |
---|---|---|
committer | zapp-brannigan <zapp-brannigan@users.noreply.github.com> | 2015-05-27 18:37:56 +0200 |
commit | 24d3adf72567b0e7ae6cc9ae411ad03a20a3f1d8 (patch) | |
tree | f488ba79095f0d7ca99e5b5b99fb9988f1f0c4b8 | |
parent | [GoogledriveCom] Fixup (diff) | |
download | pyload-24d3adf72567b0e7ae6cc9ae411ad03a20a3f1d8.tar.xz |
[MediafireCom] Fix solvemedia captcha handling
-rw-r--r-- | module/plugins/hoster/MediafireCom.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/module/plugins/hoster/MediafireCom.py b/module/plugins/hoster/MediafireCom.py index 0e63963d3..d7ab8eb3f 100644 --- a/module/plugins/hoster/MediafireCom.py +++ b/module/plugins/hoster/MediafireCom.py @@ -7,7 +7,7 @@ from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo class MediafireCom(SimpleHoster): __name__ = "MediafireCom" __type__ = "hoster" - __version__ = "0.87" + __version__ = "0.88" __pattern__ = r'https?://(?:www\.)?mediafire\.com/(file/|view/\??|download(\.php\?|/)|\?)\w{15}' __config__ = [("use_premium", "bool", "Use premium account if available", True)] @@ -40,7 +40,8 @@ class MediafireCom(SimpleHoster): if captcha_key: response, challenge = solvemedia.challenge(captcha_key) - self.html = self.load(self.pyfile.url, + dl_id = self.pyfile.url.split("/")[4] + self.html = self.load("http://www.mediafire.com/?%s" %dl_id, post={'adcopy_challenge': challenge, 'adcopy_response' : response}, decode=True) |