diff options
author | Stefano <l.stickell@yahoo.it> | 2013-05-20 20:19:00 +0200 |
---|---|---|
committer | Stefano <l.stickell@yahoo.it> | 2013-05-20 20:19:00 +0200 |
commit | d4451312d80b0443cf7a48142c00dcc7bf3be65a (patch) | |
tree | b152f6dc0e5a98b4e944648590e34f2f12282a45 /module/plugins/accounts/FilefactoryCom.py | |
parent | smaller footer (diff) | |
parent | CloudzerNet: reconnect support (diff) | |
download | pyload-d4451312d80b0443cf7a48142c00dcc7bf3be65a.tar.xz |
Merge branch 'stable'
Diffstat (limited to 'module/plugins/accounts/FilefactoryCom.py')
-rw-r--r-- | module/plugins/accounts/FilefactoryCom.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/module/plugins/accounts/FilefactoryCom.py b/module/plugins/accounts/FilefactoryCom.py index 356c5d22a..8e163e2f6 100644 --- a/module/plugins/accounts/FilefactoryCom.py +++ b/module/plugins/accounts/FilefactoryCom.py @@ -23,13 +23,13 @@ from time import mktime, strptime class FilefactoryCom(Account): __name__ = "FilefactoryCom" - __version__ = "0.12" + __version__ = "0.13" __type__ = "account" __description__ = """filefactory.com account plugin""" - __author_name__ = ("zoidberg") - __author_mail__ = ("zoidberg@mujmail.cz") + __author_name__ = ("zoidberg", "stickell") + __author_mail__ = ("zoidberg@mujmail.cz", "l.stickell@yahoo.it") - ACCOUNT_INFO_PATTERN = r'<a href="/premium/">.*?datetime="(.*?)"' + ACCOUNT_INFO_PATTERN = r'<time datetime="([\d-]+)">' def loadAccountInfo(self, user, req): html = req.load("http://www.filefactory.com/member/") @@ -37,7 +37,7 @@ class FilefactoryCom(Account): found = re.search(self.ACCOUNT_INFO_PATTERN, html) if found: premium = True - validuntil = mktime(strptime(re.sub(r"(\d)[a-z]{2} ", r"\1 ", found.group(1)),"%d %B, %Y")) + validuntil = mktime(strptime(found.group(1),"%Y-%m-%d")) else: premium = False validuntil = -1 |