From 19e21f7ae241660481b9ef864fc38c6d952ff8a5 Mon Sep 17 00:00:00 2001 From: funkyslap <99indahouse@gmail.com> Date: Wed, 17 Jun 2015 21:51:33 +0200 Subject: 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"} --- module/plugins/accounts/RealdebridCom.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'module/plugins/accounts') 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 , -- cgit v1.2.3