diff options
author | Stefano <l.stickell@yahoo.it> | 2013-12-01 12:26:20 +0100 |
---|---|---|
committer | Stefano <l.stickell@yahoo.it> | 2013-12-15 22:23:02 +0100 |
commit | c9dd5a562264b569c74f69ba7b397ddc8f16cd3b (patch) | |
tree | 63e79c61d5ffc2fde5719bcf36c22ae40ea57668 | |
parent | XHamsterCom: removed debug message translation. (diff) | |
download | pyload-c9dd5a562264b569c74f69ba7b397ddc8f16cd3b.tar.xz |
Removed old way to log plugin messages
(cherry picked from commit d686bbde84cbebe07e096939397b77043abbb03d)
-rw-r--r-- | pyload/plugins/accounts/AlldebridCom.py | 6 | ||||
-rw-r--r-- | pyload/plugins/accounts/BitshareCom.py | 4 |
2 files changed, 5 insertions, 5 deletions
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} diff --git a/pyload/plugins/accounts/BitshareCom.py b/pyload/plugins/accounts/BitshareCom.py index 39cff36eb..de1e19f51 100644 --- a/pyload/plugins/accounts/BitshareCom.py +++ b/pyload/plugins/accounts/BitshareCom.py @@ -22,7 +22,7 @@ from module.plugins.Account import Account class BitshareCom(Account): __name__ = "BitshareCom" - __version__ = "0.11" + __version__ = "0.12" __type__ = "account" __description__ = """Bitshare account plugin""" __author_name__ = ("Paul King") @@ -34,7 +34,7 @@ class BitshareCom(Account): return {"validuntil": -1, "trafficleft": -1, "premium": False} if not '<input type="checkbox" name="directdownload" checked="checked" />' in page: - self.core.log.warning(_("Activate direct Download in your Bitshare Account")) + self.logWarning(_("Activate direct Download in your Bitshare Account")) return {"validuntil": -1, "trafficleft": -1, "premium": True} |