summaryrefslogtreecommitdiffstats
path: root/module/plugins/accounts
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-03-18 13:32:30 +0100
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-03-18 13:32:30 +0100
commit48c8826b9be24f655d3fb2d69c3906ef7a4f9c60 (patch)
tree145d6a4614c552a994913976f25d2bbb2469a1b5 /module/plugins/accounts
parent[AndroidPhoneNotify][WindowsPhoneNotify] New notifications (diff)
downloadpyload-48c8826b9be24f655d3fb2d69c3906ef7a4f9c60.tar.xz
[UploadingCom] Account fixup
Diffstat (limited to 'module/plugins/accounts')
-rw-r--r--module/plugins/accounts/UploadingCom.py19
1 files changed, 11 insertions, 8 deletions
diff --git a/module/plugins/accounts/UploadingCom.py b/module/plugins/accounts/UploadingCom.py
index 5d02ff3a3..a20c44535 100644
--- a/module/plugins/accounts/UploadingCom.py
+++ b/module/plugins/accounts/UploadingCom.py
@@ -10,7 +10,7 @@ from module.plugins.internal.SimpleHoster import set_cookies
class UploadingCom(Account):
__name__ = "UploadingCom"
__type__ = "account"
- __version__ = "0.11"
+ __version__ = "0.12"
__description__ = """Uploading.com account plugin"""
__license__ = "GPLv3"
@@ -43,19 +43,22 @@ class UploadingCom(Account):
else:
if validuntil > time.mktime(time.gmtime()):
- premium = True
+ premium = True
else:
- premium = False
+ premium = False
validuntil = None
- return {'validuntil': validuntil, 'trafficleft': trafficleft, 'premium': premium}
+ return {'validuntil' : validuntil,
+ 'trafficleft': trafficleft,
+ 'premium' : premium}
def login(self, user, data, req):
- set_cookies([("uploading.com", "lang", "1"),
- ("uploading.com", "language", "1"),
- ("uploading.com", "setlang", "en"),
- ("uploading.com", "_lang", "en")]
+ set_cookies(req.cj,
+ [("uploading.com", "lang" , "1" ),
+ ("uploading.com", "language", "1" ),
+ ("uploading.com", "setlang" , "en"),
+ ("uploading.com", "_lang" , "en")])
req.load("http://uploading.com/")
req.load("http://uploading.com/general/login_form/?JsHttpRequest=%s-xml" % long(time.time() * 1000),