summaryrefslogtreecommitdiffstats
path: root/module/plugins/accounts
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-08-02 18:37:00 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-08-02 18:37:00 +0200
commitd0acce3be51760fc97c6d8cf298ef37ba2f299ec (patch)
treebb1e7491daf640ae06b86befbcbb4e6a5c986b01 /module/plugins/accounts
parentMerge pull request #1665 from J-8/stable (diff)
downloadpyload-d0acce3be51760fc97c6d8cf298ef37ba2f299ec.tar.xz
Fix https://github.com/pyload/pyload/issues/1591
Diffstat (limited to 'module/plugins/accounts')
-rw-r--r--module/plugins/accounts/XFileSharingPro.py19
1 files changed, 7 insertions, 12 deletions
diff --git a/module/plugins/accounts/XFileSharingPro.py b/module/plugins/accounts/XFileSharingPro.py
index 62270a2b0..7066445b2 100644
--- a/module/plugins/accounts/XFileSharingPro.py
+++ b/module/plugins/accounts/XFileSharingPro.py
@@ -6,7 +6,7 @@ from module.plugins.internal.XFSAccount import XFSAccount
class XFileSharingPro(XFSAccount):
__name__ = "XFileSharingPro"
__type__ = "account"
- __version__ = "0.07"
+ __version__ = "0.08"
__status__ = "testing"
__description__ = """XFileSharingPro multi-purpose account plugin"""
@@ -17,15 +17,10 @@ class XFileSharingPro(XFSAccount):
HOSTER_DOMAIN = None
- def init(self):
- if self.HOSTER_DOMAIN:
- return super(XFileSharingPro, self).init()
-
-
def login(self, user, password, data, req):
- if self.HOSTER_DOMAIN:
- 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)
+ try:
+ return super(XFileSharingPro, self).login(user, data, req)
+
+ except Fail:
+ self.HOSTER_URL = self.HOSTER_URL.replace("www.", "")
+ return super(XFileSharingPro, self).login(user, data, req)