diff options
author | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-05-30 15:56:45 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-05-30 15:56:45 +0200 |
commit | 06d14ade914827a981970b46349923e2572d2fd9 (patch) | |
tree | 23e14f5890f899a5fad42305bde5e09d766e19aa | |
parent | New plugin: FurLy (diff) | |
parent | Remove obsolete AdYouLike call (diff) | |
download | pyload-06d14ade914827a981970b46349923e2572d2fd9.tar.xz |
Merge pull request #1438 from lazlev/patch-1
Remove obsolete AdYouLike call
-rw-r--r-- | module/plugins/hoster/DlFreeFr.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/module/plugins/hoster/DlFreeFr.py b/module/plugins/hoster/DlFreeFr.py index 030f7e971..41ab93c96 100644 --- a/module/plugins/hoster/DlFreeFr.py +++ b/module/plugins/hoster/DlFreeFr.py @@ -94,14 +94,15 @@ class DlFreeFr(SimpleHoster): def handleFree(self, pyfile): action, inputs = self.parseHtmlForm('action="getfile.pl"') - adyoulike = AdYouLike(self) - response, challenge = adyoulike.challenge() - inputs.update(response) + # old - adyoulike is disabled for now + #adyoulike = AdYouLike(self) + #response, challenge = adyoulike.challenge() + #inputs.update(response) self.load("http://dl.free.fr/getfile.pl", post=inputs) headers = self.getLastHeaders() if headers.get("code") == 302 and "set-cookie" in headers and "location" in headers: - m = re.search("(.*?)=(.*?); path=(.*?); domain=(.*?)", headers.get("set-cookie")) + m = re.search("(.*?)=(.*?); path=(.*?); domain=(.*)", headers.get("set-cookie")) cj = CookieJar(__name__) if m: cj.setCookie(m.group(4), m.group(1), m.group(2), m.group(3)) |