diff options
author | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-05-27 22:39:28 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-05-27 22:39:28 +0200 |
commit | 39523eb36b5e1f7df47d4c491b2aea8de8ca8e61 (patch) | |
tree | f488ba79095f0d7ca99e5b5b99fb9988f1f0c4b8 | |
parent | [GoogledriveCom] Fixup (diff) | |
parent | [MediafireCom] Fix solvemedia captcha handling (diff) | |
download | pyload-39523eb36b5e1f7df47d4c491b2aea8de8ca8e61.tar.xz |
Merge pull request #1431 from zapp-brannigan/patch-2
[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) |