summaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-06-23 22:39:10 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-06-23 22:39:10 +0200
commit8f5692e4d4b52c5977ba45cb5a3efb3b1c9debe3 (patch)
tree0949e960561833aca3dc26ea249983b8ceb3c740 /module
parentMerge pull request #1535 from GammaC0de/patch-1 (diff)
parentRealDebridCom.py: fix DEBUG RealdebridCom: Account Info: {'error': "local var... (diff)
downloadpyload-8f5692e4d4b52c5977ba45cb5a3efb3b1c9debe3.tar.xz
Merge pull request #1522 from funkyslap/patch-2
RealDebridCom.py: RealdebridCom: Account Info: {'error': "local variable 'xml' referenced before assignment"}
Diffstat (limited to 'module')
-rw-r--r--module/plugins/accounts/RealdebridCom.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/module/plugins/accounts/RealdebridCom.py b/module/plugins/accounts/RealdebridCom.py
index 9b13aeefd..b29ad33d3 100644
--- a/module/plugins/accounts/RealdebridCom.py
+++ b/module/plugins/accounts/RealdebridCom.py
@@ -20,9 +20,9 @@ class RealdebridCom(Account):
return
html = req.load("https://real-debrid.com/api/account.php")
- xml = xml.dom.minidom.parseString(html)
+ account = xml.dom.minidom.parseString(html)
- validuntil = float(xml.getElementsByTagName("expiration")[0].childNodes[0].nodeValue)
+ validuntil = float(account.getElementsByTagName("expiration")[0].childNodes[0].nodeValue)
return {'validuntil' : validuntil,
'trafficleft': -1 ,