summaryrefslogtreecommitdiffstats
path: root/module/plugins/accounts/FilefactoryCom.py
diff options
context:
space:
mode:
authorGravatar Stefano <l.stickell@yahoo.it> 2013-05-20 20:19:00 +0200
committerGravatar Stefano <l.stickell@yahoo.it> 2013-05-20 20:19:00 +0200
commitd4451312d80b0443cf7a48142c00dcc7bf3be65a (patch)
treeb152f6dc0e5a98b4e944648590e34f2f12282a45 /module/plugins/accounts/FilefactoryCom.py
parentsmaller footer (diff)
parentCloudzerNet: reconnect support (diff)
downloadpyload-d4451312d80b0443cf7a48142c00dcc7bf3be65a.tar.xz
Merge branch 'stable'
Diffstat (limited to 'module/plugins/accounts/FilefactoryCom.py')
-rw-r--r--module/plugins/accounts/FilefactoryCom.py10
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