summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Stefano <l.stickell@yahoo.it> 2014-01-09 12:22:31 +0100
committerGravatar Stefano <l.stickell@yahoo.it> 2014-04-21 16:53:05 +0200
commit74bfa73440a4f5508fd497ec8039756cd3f7164b (patch)
tree7cf21ed3136be85e90d7cb5260b4dab423a0ac90
parentUptobox: version increased after 41382d0 (diff)
downloadpyload-74bfa73440a4f5508fd497ec8039756cd3f7164b.tar.xz
XFileSharingPro: improved DIRECT_LINK_PATTERN to fix #423
(cherry picked from commit 5a8697f05355fde265337784804a81a60365c33e)
-rw-r--r--pyload/plugins/hoster/XFileSharingPro.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pyload/plugins/hoster/XFileSharingPro.py b/pyload/plugins/hoster/XFileSharingPro.py
index d6fb31307..1fb0cf96c 100644
--- a/pyload/plugins/hoster/XFileSharingPro.py
+++ b/pyload/plugins/hoster/XFileSharingPro.py
@@ -36,7 +36,7 @@ class XFileSharingPro(SimpleHoster):
__name__ = "XFileSharingPro"
__type__ = "hoster"
__pattern__ = r"^unmatchable$"
- __version__ = "0.23"
+ __version__ = "0.24"
__description__ = """XFileSharingPro common hoster base"""
__author_name__ = ("zoidberg", "stickell")
__author_mail__ = ("zoidberg@mujmail.cz", "l.stickell@yahoo.it")
@@ -101,7 +101,7 @@ class XFileSharingPro(SimpleHoster):
if not hasattr(self, "HOSTER_NAME"):
self.HOSTER_NAME = re.search(self.__pattern__, self.pyfile.url).group(1)
if not hasattr(self, "DIRECT_LINK_PATTERN"):
- self.DIRECT_LINK_PATTERN = r'(http://([^/]*?%s|\d+\.\d+\.\d+\.\d+)(:\d+/d/|(?:/files)?/\d+/\w+/)[^"\'<]+)' % self.HOSTER_NAME
+ self.DIRECT_LINK_PATTERN = r'(http://([^/]*?%s|\d+\.\d+\.\d+\.\d+)(:\d+)?(/d/|(?:/files)?/\d+/\w+/)[^"\'<]+)' % self.HOSTER_NAME
self.captcha = self.errmsg = None
self.passwords = self.getPassword().splitlines()