summaryrefslogtreecommitdiffstats
path: root/module/plugins/internal/XFSHoster.py
diff options
context:
space:
mode:
authorGravatar Nitzo <nitzo2001@yahoo.com> 2016-02-01 01:12:20 +0100
committerGravatar Nitzo <nitzo2001@yahoo.com> 2016-02-01 01:12:20 +0100
commit248f0031b0dd5876586c331e69852f51c70ae059 (patch)
tree02d9f3135699a8f59fd648f49c7ed5bf14cb20f8 /module/plugins/internal/XFSHoster.py
parent[LogMarker] Update (diff)
downloadpyload-248f0031b0dd5876586c331e69852f51c70ae059.tar.xz
[XFSHoster] Fix download url detection
Diffstat (limited to 'module/plugins/internal/XFSHoster.py')
-rw-r--r--module/plugins/internal/XFSHoster.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/module/plugins/internal/XFSHoster.py b/module/plugins/internal/XFSHoster.py
index 81347e1ac..48c4601d3 100644
--- a/module/plugins/internal/XFSHoster.py
+++ b/module/plugins/internal/XFSHoster.py
@@ -13,7 +13,7 @@ from module.plugins.internal.misc import html_unescape, seconds_to_midnight, set
class XFSHoster(SimpleHoster):
__name__ = "XFSHoster"
__type__ = "hoster"
- __version__ = "0.72"
+ __version__ = "0.73"
__status__ = "stable"
__pattern__ = r'^unmatchable$'
@@ -96,6 +96,7 @@ class XFSHoster(SimpleHoster):
m = re.search(self.LINK_PATTERN, self.data, re.S)
if m is not None:
+ self.link = m.group(1)
break
self.data = self.load(pyfile.url,
@@ -103,17 +104,17 @@ class XFSHoster(SimpleHoster):
redirect=False)
if not "op=" in self.last_header.get('location', "op="):
+ self.link = self.last_header.get('location')
break
m = re.search(self.LINK_PATTERN, self.data, re.S)
if m is not None:
+ self.link = m.group(1)
break
else:
if 'op' in data:
self.error(_("Missing OP data after: ") + data['op'])
- self.link = m.group(1)
-
def handle_premium(self, pyfile):
return self.handle_free(pyfile)