summaryrefslogtreecommitdiffstats
path: root/module/plugins/accounts/AlldebridCom.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-06-15 18:18:30 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-06-15 18:18:30 +0200
commitee9bb026433c4cd79b84efb06ca195447c4d7916 (patch)
tree3c250388191a16b88250dfa0f7e6fd24849a6542 /module/plugins/accounts/AlldebridCom.py
parent[MultiHook] Update (diff)
downloadpyload-ee9bb026433c4cd79b84efb06ca195447c4d7916.tar.xz
Fix https://github.com/pyload/pyload/issues/1501
Diffstat (limited to 'module/plugins/accounts/AlldebridCom.py')
-rw-r--r--module/plugins/accounts/AlldebridCom.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/module/plugins/accounts/AlldebridCom.py b/module/plugins/accounts/AlldebridCom.py
index e9084dcc3..e02983e1c 100644
--- a/module/plugins/accounts/AlldebridCom.py
+++ b/module/plugins/accounts/AlldebridCom.py
@@ -12,7 +12,7 @@ from module.plugins.internal.Account import Account
class AlldebridCom(Account):
__name__ = "AlldebridCom"
__type__ = "account"
- __version__ = "0.24"
+ __version__ = "0.25"
__description__ = """AllDebrid.com account plugin"""
__license__ = "GPLv3"
@@ -46,8 +46,9 @@ class AlldebridCom(Account):
xml = xml.dom.minidom.parseString(html)
exp_time = time.time() + int(xml.getElementsByTagName("date")[0].childNodes[0].nodeValue) * 24 * 60 * 60
- account_info = {"validuntil": exp_time, "trafficleft": -1}
- return account_info
+ return {'validuntil' : exp_time,
+ 'trafficleft': -1 ,
+ 'premium' : True }
def login(self, user, data, req):