diff options
author | funkyslap <99indahouse@gmail.com> | 2015-06-17 21:51:33 +0200 |
---|---|---|
committer | funkyslap <99indahouse@gmail.com> | 2015-06-17 21:51:33 +0200 |
commit | 19e21f7ae241660481b9ef864fc38c6d952ff8a5 (patch) | |
tree | 6268929c8d41797373472ba7e21ff2af2e044573 /module/plugins | |
parent | Merge pull request #1508 from GammaC0de/patch-1 (diff) | |
download | pyload-19e21f7ae241660481b9ef864fc38c6d952ff8a5.tar.xz |
RealDebridCom.py: fix DEBUG RealdebridCom: Account Info: {'error': "local variable 'xml' referenced before assignment"}
Fix this: DEBUG RealdebridCom: Account Info: {'error': "local variable 'xml' referenced before assignment"}
Diffstat (limited to 'module/plugins')
-rw-r--r-- | module/plugins/accounts/RealdebridCom.py | 4 |
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 , |