summaryrefslogtreecommitdiffstats
path: root/module/plugins/accounts/DepositfilesCom.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/accounts/DepositfilesCom.py')
-rw-r--r--module/plugins/accounts/DepositfilesCom.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/module/plugins/accounts/DepositfilesCom.py b/module/plugins/accounts/DepositfilesCom.py
index bce33777b..b3e896d31 100644
--- a/module/plugins/accounts/DepositfilesCom.py
+++ b/module/plugins/accounts/DepositfilesCom.py
@@ -10,7 +10,7 @@ from pyload.plugin.Account import Account
class DepositfilesCom(Account):
__name__ = "DepositfilesCom"
__type__ = "account"
- __version__ = "0.30"
+ __version__ = "0.32"
__description__ = """Depositfiles.com account plugin"""
__license__ = "GPLv3"
@@ -23,13 +23,15 @@ class DepositfilesCom(Account):
html = req.load("https://dfiles.eu/de/gold/")
validuntil = re.search(r"Sie haben Gold Zugang bis: <b>(.*?)</b></div>", html).group(1)
- validuntil = int(mktime(strptime(validuntil, "%Y-%m-%d %H:%M:%S")))
+ validuntil = mktime(strptime(validuntil, "%Y-%m-%d %H:%M:%S"))
return {"validuntil": validuntil, "trafficleft": -1}
def login(self, user, data, req):
html = req.load("https://dfiles.eu/de/login.php", get={"return": "/de/gold/payment.php"},
- post={"login": user, "password": data['password']})
+ post={"login": user, "password": data['password']},
+ decode=True)
+
if r'<div class="error_message">Sie haben eine falsche Benutzername-Passwort-Kombination verwendet.</div>' in html:
self.wrongPassword()