summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-12-27 13:58:27 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-12-27 13:58:27 +0100
commit993803c222f54a6ae0a12230a5e51789ec8ed564 (patch)
treea4db22a12b0696c7bcab19d17cdb43f8da79eb4e
parent[UlozTo] Improve account login (diff)
downloadpyload-993803c222f54a6ae0a12230a5e51789ec8ed564.tar.xz
[ShareonlineBiz] Fix account wrong password recognition
-rw-r--r--module/plugins/accounts/ShareonlineBiz.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/module/plugins/accounts/ShareonlineBiz.py b/module/plugins/accounts/ShareonlineBiz.py
index fea278559..056f14876 100644
--- a/module/plugins/accounts/ShareonlineBiz.py
+++ b/module/plugins/accounts/ShareonlineBiz.py
@@ -6,7 +6,7 @@ from module.plugins.Account import Account
class ShareonlineBiz(Account):
__name__ = "ShareonlineBiz"
__type__ = "account"
- __version__ = "0.26"
+ __version__ = "0.27"
__description__ = """Share-online.biz account plugin"""
__license__ = "GPLv3"
@@ -58,5 +58,7 @@ class ShareonlineBiz(Account):
def login(self, user, data, req):
html = self.api_response(user, req)
- if "EXCEPTION" in html:
+ err = re.search(r'**(.+?)**', html)
+ if err:
+ self.logError(err.group(1))
self.wrongPassword()