summaryrefslogtreecommitdiffstats
path: root/pyload/plugins
diff options
context:
space:
mode:
authorGravatar Stefano <l.stickell@yahoo.it> 2013-08-03 21:07:24 +0200
committerGravatar Stefano <l.stickell@yahoo.it> 2013-08-03 21:34:46 +0200
commit3f80e7a57b014b62042491a91b9d35ca7817a672 (patch)
tree5aaa2876f01a579351a083a4719023e956cf6d21 /pyload/plugins
parentExtabitCom: fixed #212 (diff)
downloadpyload-3f80e7a57b014b62042491a91b9d35ca7817a672.tar.xz
DepositfilesCom: fix for #214
(cherry picked from commit 2a42a2926974b5e9c184e23da88c9b3da04c8d2b)
Diffstat (limited to 'pyload/plugins')
-rw-r--r--pyload/plugins/accounts/DepositfilesCom.py11
1 files changed, 5 insertions, 6 deletions
diff --git a/pyload/plugins/accounts/DepositfilesCom.py b/pyload/plugins/accounts/DepositfilesCom.py
index 177d7267f..5f2408e72 100644
--- a/pyload/plugins/accounts/DepositfilesCom.py
+++ b/pyload/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: <b>(.*?)</b></div>", src).group(1)
+ validuntil = re.search(r"Sie haben Gold Zugang bis: <b>(.*?)</b></div>", 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")