From c9dd5a562264b569c74f69ba7b397ddc8f16cd3b Mon Sep 17 00:00:00 2001 From: Stefano Date: Sun, 1 Dec 2013 12:26:20 +0100 Subject: Removed old way to log plugin messages (cherry picked from commit d686bbde84cbebe07e096939397b77043abbb03d) --- pyload/plugins/accounts/AlldebridCom.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'pyload/plugins/accounts/AlldebridCom.py') diff --git a/pyload/plugins/accounts/AlldebridCom.py b/pyload/plugins/accounts/AlldebridCom.py index 4be7cb897..a353b1744 100644 --- a/pyload/plugins/accounts/AlldebridCom.py +++ b/pyload/plugins/accounts/AlldebridCom.py @@ -9,7 +9,7 @@ from BeautifulSoup import BeautifulSoup class AlldebridCom(MultiHoster): __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(MultiHoster): #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(MultiHoster): 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} -- cgit v1.2.3