From 3ddf57e8f96b43b64b71d88e4667ddbddb7867af Mon Sep 17 00:00:00 2001 From: Stefano Date: Sun, 29 Dec 2013 19:09:47 +0100 Subject: FilerNet: fixed #440 (cherry picked from commit 593bacaff41d7e3a42a1b74104a96b466cfbd4fa) --- pyload/plugins/hoster/FilerNet.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/pyload/plugins/hoster/FilerNet.py b/pyload/plugins/hoster/FilerNet.py index 8e8cee526..609fa15e9 100644 --- a/pyload/plugins/hoster/FilerNet.py +++ b/pyload/plugins/hoster/FilerNet.py @@ -21,6 +21,7 @@ import pycurl import re +from urlparse import urljoin from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo from module.plugins.internal.CaptchaService import ReCaptcha @@ -30,7 +31,7 @@ class FilerNet(SimpleHoster): __name__ = "FilerNet" __type__ = "hoster" __pattern__ = r"https?://(www\.)?filer\.net/get/(\w+)" - __version__ = "0.02" + __version__ = "0.03" __description__ = """Filer.net Download Hoster""" __author_name__ = ("stickell") __author_mail__ = ("l.stickell@yahoo.it") @@ -87,9 +88,9 @@ class FilerNet(SimpleHoster): self.load(self.pyfile.url, post=post_data) self.req.http.c.setopt(pycurl.FOLLOWLOCATION, 1) - if 'location' in self.req.http.header: - location = re.search(r'location: (\S+)', self.req.http.header).group(1) - downloadURL = 'http://filer.net' + location + if 'location' in self.req.http.header.lower(): + location = re.search(r'location: (\S+)', self.req.http.header, re.I).group(1) + downloadURL = urljoin('http://filer.net', location) self.correctCaptcha() break else: -- cgit v1.2.3