diff options
author | Walter Purcaro <vuolter@gmail.com> | 2014-12-07 00:27:18 +0100 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2014-12-07 00:27:18 +0100 |
commit | 67587fbe0335cacfde28a86ba729b9d567ce1da7 (patch) | |
tree | 090ea3a41894437ce619fe06304508479ace6ab6 /module/plugins/hoster/RealdebridCom.py | |
parent | Plugin code cosmetics (2) (diff) | |
download | pyload-67587fbe0335cacfde28a86ba729b9d567ce1da7.tar.xz |
Plugin code cosmetics (3)
Diffstat (limited to 'module/plugins/hoster/RealdebridCom.py')
-rw-r--r-- | module/plugins/hoster/RealdebridCom.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/module/plugins/hoster/RealdebridCom.py b/module/plugins/hoster/RealdebridCom.py index db19a9217..cc6dd49c3 100644 --- a/module/plugins/hoster/RealdebridCom.py +++ b/module/plugins/hoster/RealdebridCom.py @@ -52,10 +52,11 @@ class RealdebridCom(Hoster): else: password = password[0] - url = "https://real-debrid.com/ajax/unrestrict.php?lang=en&link=%s&password=%s&time=%s" % ( - quote(pyfile.url, ""), password, int(time() * 1000)) - page = self.load(url) - data = json_loads(page) + data = json_loads(self.load("https://real-debrid.com/ajax/unrestrict.php", + get={'lang' : "en", + 'link' : quote(pyfile.url, ""), + 'password': password, + 'time' : int(time() * 1000)})) self.logDebug("Returned Data: %s" % data) |