diff options
author | lazlev <lazlev@yopmail.com> | 2015-05-30 15:09:05 +0200 |
---|---|---|
committer | lazlev <lazlev@yopmail.com> | 2015-05-30 15:09:05 +0200 |
commit | cfc406b4e5b855b1560cae880287b0a1f074aafe (patch) | |
tree | c05dec15cd09f722e7dda1251c0351df4a82e652 /module | |
parent | [XFileSharingPro][XFileSharingProFolder] Added default __pattern__ (diff) | |
download | pyload-cfc406b4e5b855b1560cae880287b0a1f074aafe.tar.xz |
Remove obsolete AdYouLike call
AdYouLike is currently not used anymore on the hoster's site. Additionally the regex had to be edited to actually grab the domain value.
Diffstat (limited to 'module')
-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)) |