From 3cfbbd72556af4fb26289ff0b3a38df8e5d5cd0f Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Fri, 31 Jul 2015 03:30:56 +0200 Subject: Fix https://github.com/pyload/pyload/issues/1613 --- module/plugins/accounts/ShareonlineBiz.py | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'module/plugins/accounts') diff --git a/module/plugins/accounts/ShareonlineBiz.py b/module/plugins/accounts/ShareonlineBiz.py index d7a3c8ed2..869005aae 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.36" + __version__ = "0.37" __status__ = "testing" __description__ = """Share-online.biz account plugin""" @@ -21,17 +21,14 @@ class ShareonlineBiz(Account): get={'q' : "userdetails", 'aux' : "traffic", 'username': user, - 'password': password}) + 'password': password}, + decode=False) self.log_debug(res) - api = {} - for line in res.splitlines(): - if "=" in line: - key, value = line.split("=") - api[key] = value + api = dict(line.split("=") for line in res.splitlines() if "=" in line) - if not api['a']: + if not 'a' in api: self.login_fail(_("Invalid username/password")) if api['a'].lower() == "not_available": -- cgit v1.2.3