summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Stefano <l.stickell@yahoo.it> 2013-12-29 19:09:47 +0100
committerGravatar Stefano <l.stickell@yahoo.it> 2014-04-21 16:47:43 +0200
commit3ddf57e8f96b43b64b71d88e4667ddbddb7867af (patch)
treefb47a21403c97edff55da13a736ef5d2d5fcfd43
parentCrocko: fixed #447 (diff)
downloadpyload-3ddf57e8f96b43b64b71d88e4667ddbddb7867af.tar.xz
FilerNet: fixed #440
(cherry picked from commit 593bacaff41d7e3a42a1b74104a96b466cfbd4fa)
-rw-r--r--pyload/plugins/hoster/FilerNet.py9
1 files 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: