summaryrefslogtreecommitdiffstats
path: root/module/plugins/accounts/XFileSharingPro.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/accounts/XFileSharingPro.py')
-rw-r--r--module/plugins/accounts/XFileSharingPro.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/module/plugins/accounts/XFileSharingPro.py b/module/plugins/accounts/XFileSharingPro.py
index 9d938c4c5..216af5385 100644
--- a/module/plugins/accounts/XFileSharingPro.py
+++ b/module/plugins/accounts/XFileSharingPro.py
@@ -6,7 +6,7 @@ from pyload.plugin.internal.XFSAccount import XFSAccount
class XFileSharingPro(XFSAccount):
__name__ = "XFileSharingPro"
__type__ = "account"
- __version__ = "0.05"
+ __version__ = "0.06"
__description__ = """XFileSharingPro multi-purpose account plugin"""
__license__ = "GPLv3"
@@ -27,4 +27,8 @@ class XFileSharingPro(XFSAccount):
def login(self, user, data, req):
if self.HOSTER_DOMAIN:
- return super(XFileSharingPro, self).login(user, data, req)
+ try:
+ return super(XFileSharingPro, self).login(user, data, req)
+ except Exception:
+ self.HOSTER_URL = self.HOSTER_URL.replace("www.", "")
+ return super(XFileSharingPro, self).login(user, data, req)