From 24d3adf72567b0e7ae6cc9ae411ad03a20a3f1d8 Mon Sep 17 00:00:00 2001 From: zapp-brannigan Date: Wed, 27 May 2015 18:37:56 +0200 Subject: [MediafireCom] Fix solvemedia captcha handling --- module/plugins/hoster/MediafireCom.py | 5 +++-- 1 file 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) -- cgit v1.2.3