summaryrefslogtreecommitdiffstats
path: root/module/plugins/accounts/AlldebridCom.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/accounts/AlldebridCom.py')
-rw-r--r--module/plugins/accounts/AlldebridCom.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/module/plugins/accounts/AlldebridCom.py b/module/plugins/accounts/AlldebridCom.py
index 9fb050535..6156605a7 100644
--- a/module/plugins/accounts/AlldebridCom.py
+++ b/module/plugins/accounts/AlldebridCom.py
@@ -9,7 +9,7 @@ from BeautifulSoup import BeautifulSoup
class AlldebridCom(Account):
__name__ = "AlldebridCom"
- __version__ = "0.21"
+ __version__ = "0.22"
__type__ = "account"
__description__ = """AllDebrid.com account plugin"""
__author_name__ = ("Andy, Voigt")
@@ -22,7 +22,7 @@ class AlldebridCom(Account):
#Try to parse expiration date directly from the control panel page (better accuracy)
try:
time_text = soup.find('div', attrs={'class': 'remaining_time_text'}).strong.string
- self.log.debug("Account expires in: %s" % time_text)
+ self.logDebug("Account expires in: %s" % time_text)
p = re.compile('\d+')
exp_data = p.findall(time_text)
exp_time = time() + int(exp_data[0]) * 24 * 60 * 60 + int(
@@ -32,7 +32,7 @@ class AlldebridCom(Account):
data = self.getAccountData(user)
page = req.load("http://www.alldebrid.com/api.php?action=info_user&login=%s&pw=%s" % (user,
data["password"]))
- self.log.debug(page)
+ self.logDebug(page)
xml = dom.parseString(page)
exp_time = time() + int(xml.getElementsByTagName("date")[0].childNodes[0].nodeValue) * 86400
account_info = {"validuntil": exp_time, "trafficleft": -1}