summaryrefslogtreecommitdiffstats
path: root/module/plugins/accounts/DebridItaliaCom.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/accounts/DebridItaliaCom.py')
-rw-r--r--module/plugins/accounts/DebridItaliaCom.py11
1 files changed, 5 insertions, 6 deletions
diff --git a/module/plugins/accounts/DebridItaliaCom.py b/module/plugins/accounts/DebridItaliaCom.py
index 50f9aea27..4fe4fcecc 100644
--- a/module/plugins/accounts/DebridItaliaCom.py
+++ b/module/plugins/accounts/DebridItaliaCom.py
@@ -1,16 +1,15 @@
# -*- coding: utf-8 -*-
import re
+import time
-from time import mktime, strptime
-
-from module.plugins.Account import Account
+from module.plugins.internal.Account import Account
class DebridItaliaCom(Account):
__name__ = "DebridItaliaCom"
__type__ = "account"
- __version__ = "0.13"
+ __version__ = "0.14"
__description__ = """Debriditalia.com account plugin"""
__license__ = "GPLv3"
@@ -28,7 +27,7 @@ class DebridItaliaCom(Account):
if 'Account premium not activated' not in html:
m = re.search(self.WALID_UNTIL_PATTERN, html)
if m:
- validuntil = mktime(strptime(m.group(1), "%d/%m/%Y %H:%M"))
+ validuntil = time.mktime(time.strptime(m.group(1), "%d/%m/%Y %H:%M"))
info = {"premium": True, "validuntil": validuntil, "trafficleft": -1}
else:
self.logError(_("Unable to retrieve account information"))
@@ -37,7 +36,7 @@ class DebridItaliaCom(Account):
def login(self, user, data, req):
- html = req.load("http://debriditalia.com/login.php",
+ html = req.load("https://debriditalia.com/login.php",
get={'u': user, 'p': data['password']},
decode=True)