From 139722a9355947f8e0696f46e3bb97c239514a37 Mon Sep 17 00:00:00 2001 From: zoidberg10 Date: Mon, 8 Oct 2012 22:28:35 +0200 Subject: filebeer workaround, rehost.to chunklimit, multihoster config --- module/plugins/accounts/FilebeerInfo.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'module/plugins/accounts') diff --git a/module/plugins/accounts/FilebeerInfo.py b/module/plugins/accounts/FilebeerInfo.py index 9cfdb867c..40ab70519 100644 --- a/module/plugins/accounts/FilebeerInfo.py +++ b/module/plugins/accounts/FilebeerInfo.py @@ -24,7 +24,7 @@ from module.utils import parseFileSize class FilebeerInfo(Account): __name__ = "FilebeerInfo" - __version__ = "0.01" + __version__ = "0.02" __type__ = "account" __description__ = """filebeer.info account plugin""" __author_name__ = ("zoidberg") @@ -34,14 +34,14 @@ class FilebeerInfo(Account): def loadAccountInfo(self, user, req): html = req.load("http://filebeer.info/upgrade.php", decode = True) - premium = 'Paid User ' in html + premium = not 'Free User ' in html validuntil = None if premium: try: validuntil = mktime(strptime(re.search(self.VALID_UNTIL_PATTERN, html).group(1), "%d/%m/%Y %H:%M:%S")) except Exception, e: - self.logError(e) + self.logError("Unable to parse account info", e) return {"validuntil": validuntil, "trafficleft": -1, "premium": premium} -- cgit v1.2.3