summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/RealdebridCom.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-12-20 14:24:13 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-12-20 14:24:13 +0100
commit6325eda4e8c142edd11c747f7a9d4a3fa975c494 (patch)
tree589819bb5e5ce441ea8f1109c8357c086816ed69 /module/plugins/hoster/RealdebridCom.py
parent[AlldebridCom] Syntax fixup (diff)
downloadpyload-6325eda4e8c142edd11c747f7a9d4a3fa975c494.tar.xz
Fix password retrieving in some plugins
Diffstat (limited to 'module/plugins/hoster/RealdebridCom.py')
-rw-r--r--module/plugins/hoster/RealdebridCom.py12
1 files changed, 3 insertions, 9 deletions
diff --git a/module/plugins/hoster/RealdebridCom.py b/module/plugins/hoster/RealdebridCom.py
index e624d1f34..bec0b820c 100644
--- a/module/plugins/hoster/RealdebridCom.py
+++ b/module/plugins/hoster/RealdebridCom.py
@@ -14,7 +14,7 @@ from module.utils import parseFileSize
class RealdebridCom(SimpleHoster):
__name__ = "RealdebridCom"
__type__ = "hoster"
- __version__ = "0.55"
+ __version__ = "0.56"
__pattern__ = r'https?://(?:[^/]*\.)?real-debrid\..*'
@@ -42,16 +42,10 @@ class RealdebridCom(SimpleHoster):
def handleMulti(self):
- password = self.getPassword().splitlines()
- if not password:
- password = ""
- else:
- password = password[0]
-
- data = json_loads(self.load("https://real-debrid.com/ajax/unrestrict.php",
+ data = json_loads(self.load("https://real-debrid.com/ajax/unrestrict.php",
get={'lang' : "en",
'link' : quote(self.pyfile.url, ""),
- 'password': password,
+ 'password': self.getPassword(),
'time' : int(time() * 1000)}))
self.logDebug("Returned Data: %s" % data)