From 2a42a2926974b5e9c184e23da88c9b3da04c8d2b Mon Sep 17 00:00:00 2001 From: Stefano Date: Sat, 3 Aug 2013 21:07:24 +0200 Subject: DepositfilesCom: fix for #214 --- module/plugins/accounts/DepositfilesCom.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'module/plugins/accounts/DepositfilesCom.py') diff --git a/module/plugins/accounts/DepositfilesCom.py b/module/plugins/accounts/DepositfilesCom.py index 177d7267f..5f2408e72 100644 --- a/module/plugins/accounts/DepositfilesCom.py +++ b/module/plugins/accounts/DepositfilesCom.py @@ -25,20 +25,19 @@ from module.plugins.Account import Account class DepositfilesCom(Account): __name__ = "DepositfilesCom" - __version__ = "0.1" + __version__ = "0.2" __type__ = "account" __description__ = """depositfiles.com account plugin""" - __author_name__ = ("mkaay") - __author_mail__ = ("mkaay@mkaay.de") + __author_name__ = ("mkaay", "stickell") + __author_mail__ = ("mkaay@mkaay.de", "l.stickell@yahoo.it") def loadAccountInfo(self, user, req): src = req.load("http://depositfiles.com/de/gold/") - validuntil = re.search("noch den Gold-Zugriff: (.*?)", src).group(1) + validuntil = re.search(r"Sie haben Gold Zugang bis: (.*?)", src).group(1) validuntil = int(mktime(strptime(validuntil, "%Y-%m-%d %H:%M:%S"))) - tmp = {"validuntil": validuntil, "trafficleft": -1} - return tmp + return {"validuntil": validuntil, "trafficleft": -1} def login(self, user, data, req): req.load("http://depositfiles.com/de/gold/payment.php") -- cgit v1.2.3