diff options
author | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-07-29 12:23:29 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-07-29 12:23:29 +0200 |
commit | e91d1b7b50c97fdbec0f99c071d3fd19b25e57bc (patch) | |
tree | b422868bae27bd7b2fc2e964a5b323161b312ce7 | |
parent | Fix http://forum.pyload.org/viewtopic.php?f=12&t=4419 (diff) | |
download | pyload-e91d1b7b50c97fdbec0f99c071d3fd19b25e57bc.tar.xz |
[Plugin] Fix set_cookies
-rw-r--r-- | module/plugins/accounts/ShareonlineBiz.py | 8 | ||||
-rw-r--r-- | module/plugins/internal/Plugin.py | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/module/plugins/accounts/ShareonlineBiz.py b/module/plugins/accounts/ShareonlineBiz.py index 31a1a24c6..1945b2743 100644 --- a/module/plugins/accounts/ShareonlineBiz.py +++ b/module/plugins/accounts/ShareonlineBiz.py @@ -18,10 +18,10 @@ class ShareonlineBiz(Account): def api_response(self, user, password, req): return self.load("http://api.share-online.biz/cgi-bin", - get={'q' : "userdetails", - 'aux' : "traffic", - 'username': user, - 'password': password}) + get={'q' : "userdetails", + 'aux' : "traffic", + 'username': user, + 'password': password}) def parse_info(self, user, password, data, req): diff --git a/module/plugins/internal/Plugin.py b/module/plugins/internal/Plugin.py index 84dd5bdd4..0049826da 100644 --- a/module/plugins/internal/Plugin.py +++ b/module/plugins/internal/Plugin.py @@ -80,7 +80,7 @@ def set_cookies(cj, cookies): for cookie in cookies: if isinstance(cookie, tuple) and len(cookie) == 3: domain, name, value = cookie - cj.setCookie(domain, name, value) + cj.setCookie(domain, name, encode(value)) #@TODO: Remove `encode` in 0.4.10 def parse_html_tag_attr_value(attr_name, tag): @@ -137,7 +137,7 @@ def chunks(iterable, size): class Plugin(object): __name__ = "Plugin" __type__ = "hoster" - __version__ = "0.17" + __version__ = "0.18" __status__ = "testing" __pattern__ = r'^unmatchable$' |