summaryrefslogtreecommitdiffstats
path: root/module/plugins/accounts/RapideoPl.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-03-14 11:07:54 +0100
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-03-14 11:07:54 +0100
commite65d19ee3a1e435bf2896ed829e5581eeef92dd2 (patch)
treecf5bb073899205a2f00ddeca8df8b9f3944ea835 /module/plugins/accounts/RapideoPl.py
parent[HotFolder] Missing exception (diff)
downloadpyload-e65d19ee3a1e435bf2896ed829e5581eeef92dd2.tar.xz
Import cleanup for datetime and time modules
Diffstat (limited to 'module/plugins/accounts/RapideoPl.py')
-rw-r--r--module/plugins/accounts/RapideoPl.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/module/plugins/accounts/RapideoPl.py b/module/plugins/accounts/RapideoPl.py
index 426c680a6..3e9d52fe8 100644
--- a/module/plugins/accounts/RapideoPl.py
+++ b/module/plugins/accounts/RapideoPl.py
@@ -1,10 +1,10 @@
# -*- coding: utf-8 -*-
-from datetime import datetime
+import datetime
import hashlib
+import time
from module.plugins.Account import Account
-from time import mktime
from module.common.json_layer import json_loads as loads
@@ -43,7 +43,7 @@ class RapideoPl(Account):
valid_untill = -1
if "expire" in result.keys() and result["expire"]:
premium = True
- valid_untill = mktime(datetime.fromtimestamp(int(result["expire"])).timetuple())
+ valid_untill = time.mktime(datetime.datetime.fromtimestamp(int(result["expire"])).timetuple())
traffic_left = result["balance"]