summaryrefslogtreecommitdiffstats
path: root/module/plugins/accounts/ShareonlineBiz.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-07-31 03:30:56 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-07-31 03:30:56 +0200
commit3cfbbd72556af4fb26289ff0b3a38df8e5d5cd0f (patch)
tree17754dd632e4fba047b025693ff7b4e7f53683f7 /module/plugins/accounts/ShareonlineBiz.py
parent[ShareonlineBiz] Improve account (diff)
downloadpyload-3cfbbd72556af4fb26289ff0b3a38df8e5d5cd0f.tar.xz
Fix https://github.com/pyload/pyload/issues/1613
Diffstat (limited to 'module/plugins/accounts/ShareonlineBiz.py')
-rw-r--r--module/plugins/accounts/ShareonlineBiz.py13
1 files changed, 5 insertions, 8 deletions
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":