diff options
author | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-10-18 19:14:29 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-10-18 19:14:29 +0200 |
commit | 9d9618ab35071f36840fe51e63fe2f887131dc5a (patch) | |
tree | 47028e89e5a7a2ede5e1d0eddfa7930ba367baf6 /module/plugins/hoster/LinksnappyCom.py | |
parent | [SimpleCrypter] Don't use self.link(s) (diff) | |
download | pyload-9d9618ab35071f36840fe51e63fe2f887131dc5a.tar.xz |
Update hosters
Diffstat (limited to 'module/plugins/hoster/LinksnappyCom.py')
-rw-r--r-- | module/plugins/hoster/LinksnappyCom.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/module/plugins/hoster/LinksnappyCom.py b/module/plugins/hoster/LinksnappyCom.py index aa9d9bdcb..7e373e1f1 100644 --- a/module/plugins/hoster/LinksnappyCom.py +++ b/module/plugins/hoster/LinksnappyCom.py @@ -3,7 +3,7 @@ import re import urlparse -from module.common.json_layer import json_loads, json_dumps +from module.plugins.internal.utils import json from module.plugins.internal.MultiHoster import MultiHoster, create_getInfo @@ -25,7 +25,7 @@ class LinksnappyCom(MultiHoster): def handle_premium(self, pyfile): host = self._get_host(pyfile.url) - json_params = json_dumps({'link' : pyfile.url, + json_params = json.dumps({'link' : pyfile.url, 'type' : host, 'username': self.account.user, 'password': self.account.get_login('password')}) @@ -35,7 +35,7 @@ class LinksnappyCom(MultiHoster): self.log_debug("JSON data: " + r) - j = json_loads(r)['links'][0] + j = json.loads(r)['links'][0] if j['error']: self.error(_("Error converting the link")) |