summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/LetitbitNet.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-07-14 16:10:01 +0200
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-07-15 16:26:07 +0200
commit7b8c458cca7d21a029620f98e453f746fce69cd1 (patch)
tree9e97b0003a00ff8ac9ee6b777d94bb998c911d05 /module/plugins/hoster/LetitbitNet.py
parentFix code indentation, some bad whitespaces and missing authors + use 'not' in... (diff)
downloadpyload-7b8c458cca7d21a029620f98e453f746fce69cd1.tar.xz
Prefer single quote for dict key name
Diffstat (limited to 'module/plugins/hoster/LetitbitNet.py')
-rw-r--r--module/plugins/hoster/LetitbitNet.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/module/plugins/hoster/LetitbitNet.py b/module/plugins/hoster/LetitbitNet.py
index 3df1e8330..1ebed3bd4 100644
--- a/module/plugins/hoster/LetitbitNet.py
+++ b/module/plugins/hoster/LetitbitNet.py
@@ -31,9 +31,9 @@ from module.plugins.internal.SimpleHoster import SimpleHoster
def api_download_info(url):
- json_data = ['yw7XQy2v9', ["download/info", {"link": url}]]
+ json_data = ["yw7XQy2v9", ["download/info", {"link": url}]]
post_data = urllib.urlencode({'r': json_dumps(json_data)})
- api_rep = urllib.urlopen('http://api.letitbit.net/json', data=post_data).read()
+ api_rep = urllib.urlopen("http://api.letitbit.net/json", data=post_data).read()
return json_loads(api_rep)
@@ -157,7 +157,7 @@ class LetitbitNet(SimpleHoster):
def handlePremium(self):
api_key = self.user
- premium_key = self.account.getAccountData(self.user)["password"]
+ premium_key = self.account.getAccountData(self.user)['password']
json_data = [api_key, ["download/direct_links", {"pass": premium_key, "link": self.pyfile.url}]]
api_rep = self.load('http://api.letitbit.net/json', post={'r': json_dumps(json_data)})