summaryrefslogtreecommitdiffstats
path: root/module/plugins/accounts
diff options
context:
space:
mode:
authorGravatar zoidberg10 <zoidberg@mujmail.cz> 2012-10-08 22:28:35 +0200
committerGravatar zoidberg10 <zoidberg@mujmail.cz> 2012-10-08 22:28:35 +0200
commit139722a9355947f8e0696f46e3bb97c239514a37 (patch)
treeb6288fbdb6108d6f43894673b86fef65995bb317 /module/plugins/accounts
parentfix rapidgator.net (diff)
downloadpyload-139722a9355947f8e0696f46e3bb97c239514a37.tar.xz
filebeer workaround, rehost.to chunklimit, multihoster config
Diffstat (limited to 'module/plugins/accounts')
-rw-r--r--module/plugins/accounts/FilebeerInfo.py6
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}