summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/RealdebridCom.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/RealdebridCom.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/RealdebridCom.py')
-rw-r--r--module/plugins/hoster/RealdebridCom.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/module/plugins/hoster/RealdebridCom.py b/module/plugins/hoster/RealdebridCom.py
index 36fcd194c..17cd86ccd 100644
--- a/module/plugins/hoster/RealdebridCom.py
+++ b/module/plugins/hoster/RealdebridCom.py
@@ -54,16 +54,16 @@ class RealdebridCom(Hoster):
self.logDebug("Returned Data: %s" % data)
- if data["error"] != 0:
- if data["message"] == "Your file is unavailable on the hoster.":
+ if data['error'] != 0:
+ if data['message'] == "Your file is unavailable on the hoster.":
self.offline()
else:
- self.logWarning(data["message"])
+ self.logWarning(data['message'])
self.tempOffline()
else:
- if pyfile.name is not None and pyfile.name.endswith('.tmp') and data["file_name"]:
- pyfile.name = data["file_name"]
- pyfile.size = parseFileSize(data["file_size"])
+ if pyfile.name is not None and pyfile.name.endswith('.tmp') and data['file_name']:
+ pyfile.name = data['file_name']
+ pyfile.size = parseFileSize(data['file_size'])
new_url = data['generated_links'][0][-1]
if self.getConfig("https"):