From c1764e2fea0bb05164c83a876e8cd58b97f58f25 Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Tue, 16 Jun 2015 17:31:38 +0200 Subject: Update all --- module/plugins/accounts/UploadingCom.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'module/plugins/accounts/UploadingCom.py') diff --git a/module/plugins/accounts/UploadingCom.py b/module/plugins/accounts/UploadingCom.py index 967f79678..c701fb8fa 100644 --- a/module/plugins/accounts/UploadingCom.py +++ b/module/plugins/accounts/UploadingCom.py @@ -4,7 +4,7 @@ import re import time from module.plugins.internal.Account import Account -from module.plugins.internal.SimpleHoster import set_cookies +from module.plugins.internal.Plugin import set_cookies class UploadingCom(Account): @@ -26,7 +26,7 @@ class UploadingCom(Account): trafficleft = None premium = None - html = req.load("http://uploading.com/") + html = self.load("http://uploading.com/", req=req) premium = False if re.search(self.PREMIUM_PATTERN, html) else True @@ -60,6 +60,6 @@ class UploadingCom(Account): ("uploading.com", "setlang" , "en"), ("uploading.com", "_lang" , "en")]) - req.load("http://uploading.com/") - req.load("https://uploading.com/general/login_form/?JsHttpRequest=%s-xml" % long(time.time() * 1000), + self.load("http://uploading.com/", req=req) + self.load("https://uploading.com/general/login_form/?JsHttpRequest=%s-xml" % long(time.time() * 1000, req=req), post={'email': user, 'password': data['password'], 'remember': "on"}) -- cgit v1.2.3