summaryrefslogtreecommitdiffstats
path: root/module/plugins/accounts/UploadedTo.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/accounts/UploadedTo.py')
-rw-r--r--module/plugins/accounts/UploadedTo.py14
1 files changed, 8 insertions, 6 deletions
diff --git a/module/plugins/accounts/UploadedTo.py b/module/plugins/accounts/UploadedTo.py
index 1b6df97fb..dc4c9fb73 100644
--- a/module/plugins/accounts/UploadedTo.py
+++ b/module/plugins/accounts/UploadedTo.py
@@ -1,15 +1,15 @@
# -*- coding: utf-8 -*-
import re
-from time import time
+import time
-from module.plugins.Account import Account
+from module.plugins.internal.Account import Account
class UploadedTo(Account):
__name__ = "UploadedTo"
__type__ = "account"
- __version__ = "0.30"
+ __version__ = "0.31"
__description__ = """Uploaded.to account plugin"""
__license__ = "GPLv3"
@@ -39,7 +39,7 @@ class UploadedTo(Account):
else:
m = re.findall(r'(\d+) (week|day|hour)', expiredate)
if m:
- validuntil = time()
+ validuntil = time.time()
for n, u in m:
validuntil += float(n) * 60 * 60 * {'week': 168, 'day': 24, 'hour': 1}[u]
@@ -55,13 +55,15 @@ class UploadedTo(Account):
else:
trafficleft = self.parseTraffic(size + unit)
- return {'validuntil': validuntil, 'trafficleft': trafficleft, 'premium': premium}
+ return {'validuntil' : validuntil,
+ 'trafficleft': trafficleft,
+ 'premium' : premium}
def login(self, user, data, req):
# req.cj.setCookie("uploaded.net", "lang", "en")
- html = req.load("http://uploaded.net/io/login",
+ html = req.load("https://uploaded.net/io/login",
post={'id': user, 'pw': data['password'], '_': ""},
decode=True)