diff options
author | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-08-02 08:17:40 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-08-02 08:17:40 +0200 |
commit | b2c14571441069b1ad5997f1f6723161e11f4f05 (patch) | |
tree | 64ad4515c2c51e2693e873ccbce1576ee464d2d8 /module/plugins/accounts | |
parent | Fix https://github.com/pyload/pyload/issues/1640 (2) (diff) | |
download | pyload-b2c14571441069b1ad5997f1f6723161e11f4f05.tar.xz |
Fix https://github.com/pyload/pyload/issues/1643
Diffstat (limited to 'module/plugins/accounts')
-rw-r--r-- | module/plugins/accounts/ShareonlineBiz.py | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/module/plugins/accounts/ShareonlineBiz.py b/module/plugins/accounts/ShareonlineBiz.py index 869005aae..a1045bbe7 100644 --- a/module/plugins/accounts/ShareonlineBiz.py +++ b/module/plugins/accounts/ShareonlineBiz.py @@ -8,7 +8,7 @@ from module.plugins.internal.Account import Account class ShareonlineBiz(Account): __name__ = "ShareonlineBiz" __type__ = "account" - __version__ = "0.37" + __version__ = "0.38" __status__ = "testing" __description__ = """Share-online.biz account plugin""" @@ -29,7 +29,7 @@ class ShareonlineBiz(Account): api = dict(line.split("=") for line in res.splitlines() if "=" in line) if not 'a' in api: - self.login_fail(_("Invalid username/password")) + self.login_fail(res.strip('*').strip()) if api['a'].lower() == "not_available": self.login_fail(_("No info available")) @@ -65,9 +65,4 @@ class ShareonlineBiz(Account): def login(self, user, password, data, req): api = self.api_response(user, password, req) - err = re.search(r'\*\*(.+?)\*\*', api) - - if not err: - req.cj.setCookie("share-online.biz", 'a', api['a']) - else: - self.login_fail(err.group(1)) + req.cj.setCookie("share-online.biz", 'a', api['a']) |