From b2c14571441069b1ad5997f1f6723161e11f4f05 Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Sun, 2 Aug 2015 08:17:40 +0200 Subject: Fix https://github.com/pyload/pyload/issues/1643 --- module/plugins/accounts/ShareonlineBiz.py | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'module/plugins/accounts') 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']) -- cgit v1.2.3