diff options
author | zoidberg10 <zoidberg@mujmail.cz> | 2012-10-08 22:28:35 +0200 |
---|---|---|
committer | zoidberg10 <zoidberg@mujmail.cz> | 2012-10-08 22:28:35 +0200 |
commit | 139722a9355947f8e0696f46e3bb97c239514a37 (patch) | |
tree | b6288fbdb6108d6f43894673b86fef65995bb317 /module/plugins/accounts | |
parent | fix rapidgator.net (diff) | |
download | pyload-139722a9355947f8e0696f46e3bb97c239514a37.tar.xz |
filebeer workaround, rehost.to chunklimit, multihoster config
Diffstat (limited to 'module/plugins/accounts')
-rw-r--r-- | module/plugins/accounts/FilebeerInfo.py | 6 |
1 files changed, 3 insertions, 3 deletions
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 </td>' in html + premium = not 'Free User </td>' 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} |