summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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)