summaryrefslogtreecommitdiffstats
path: root/module/plugins/accounts
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/accounts')
-rw-r--r--module/plugins/accounts/AlldebridCom.py12
-rw-r--r--module/plugins/accounts/BitshareCom.py5
-rw-r--r--module/plugins/accounts/CatShareNet.py9
-rw-r--r--module/plugins/accounts/CloudzillaTo.py7
-rw-r--r--module/plugins/accounts/CzshareCom.py7
-rw-r--r--module/plugins/accounts/DebridItaliaCom.py4
-rw-r--r--module/plugins/accounts/DepositfilesCom.py7
-rw-r--r--module/plugins/accounts/EuroshareEu.py7
-rw-r--r--module/plugins/accounts/FastixRu.py10
-rw-r--r--module/plugins/accounts/FastshareCz.py6
-rw-r--r--module/plugins/accounts/FilecloudIo.py3
-rw-r--r--module/plugins/accounts/FilefactoryCom.py7
-rw-r--r--module/plugins/accounts/FilejungleCom.py16
-rw-r--r--module/plugins/accounts/FilerNet.py11
-rw-r--r--module/plugins/accounts/FilesMailRu.py9
-rw-r--r--module/plugins/accounts/FileserveCom.py21
-rw-r--r--module/plugins/accounts/FourSharedCom.py11
-rw-r--r--module/plugins/accounts/FreakshareCom.py5
-rw-r--r--module/plugins/accounts/FshareVn.py10
-rw-r--r--module/plugins/accounts/HellshareCz.py12
-rw-r--r--module/plugins/accounts/HighWayMe.py5
-rw-r--r--module/plugins/accounts/Keep2ShareCc.py9
-rw-r--r--module/plugins/accounts/LetitbitNet.py4
-rw-r--r--module/plugins/accounts/LinksnappyCom.py12
-rw-r--r--module/plugins/accounts/MegaDebridEu.py10
-rw-r--r--module/plugins/accounts/MegaRapidCz.py11
-rw-r--r--module/plugins/accounts/MegaRapidoNet.py4
-rw-r--r--module/plugins/accounts/MegasharesCom.py9
-rw-r--r--module/plugins/accounts/MultishareCz.py7
-rw-r--r--module/plugins/accounts/MyfastfileCom.py4
-rw-r--r--module/plugins/accounts/NitroflareCom.py12
-rw-r--r--module/plugins/accounts/NoPremiumPl.py4
-rw-r--r--module/plugins/accounts/NowVideoSx.py4
-rw-r--r--module/plugins/accounts/OboomCom.py5
-rw-r--r--module/plugins/accounts/OneFichierCom.py11
-rw-r--r--module/plugins/accounts/OverLoadMe.py10
-rw-r--r--module/plugins/accounts/PremiumTo.py8
-rw-r--r--module/plugins/accounts/QuickshareCz.py7
-rw-r--r--module/plugins/accounts/RapideoPl.py4
-rw-r--r--module/plugins/accounts/RapidgatorNet.py11
-rw-r--r--module/plugins/accounts/RapiduNet.py18
-rw-r--r--module/plugins/accounts/RealdebridCom.py4
-rw-r--r--module/plugins/accounts/RehostTo.py9
-rw-r--r--module/plugins/accounts/SimplyPremiumCom.py3
-rw-r--r--module/plugins/accounts/SmoozedCom.py4
-rw-r--r--module/plugins/accounts/TurbobitNet.py7
-rw-r--r--module/plugins/accounts/UlozTo.py15
-rw-r--r--module/plugins/accounts/UploadableCh.py9
-rw-r--r--module/plugins/accounts/UploadedTo.py5
-rw-r--r--module/plugins/accounts/UploadheroCom.py4
-rw-r--r--module/plugins/accounts/UploadingCom.py7
-rw-r--r--module/plugins/accounts/WebshareCz.py16
-rw-r--r--module/plugins/accounts/YibaishiwuCom.py9
-rw-r--r--module/plugins/accounts/ZeveraCom.py5
54 files changed, 283 insertions, 162 deletions
diff --git a/module/plugins/accounts/AlldebridCom.py b/module/plugins/accounts/AlldebridCom.py
index eb58da928..f73c3e0fd 100644
--- a/module/plugins/accounts/AlldebridCom.py
+++ b/module/plugins/accounts/AlldebridCom.py
@@ -39,7 +39,10 @@ class AlldebridCom(Account):
except Exception:
data = self.get_account_data(user)
html = self.load("https://www.alldebrid.com/api.php",
- get={'action': "info_user", 'login': user, 'pw': data['password']}, req=req)
+ get={'action': "info_user",
+ 'login' : user,
+ 'pw' : data['password']},
+ req=req)
self.log_debug(html)
@@ -53,9 +56,10 @@ class AlldebridCom(Account):
def login(self, user, data, req):
html = self.load("https://www.alldebrid.com/register/",
- get={'action' : "login",
- 'login_login' : user,
- 'login_password': data['password']}, req=req)
+ get={'action' : "login",
+ 'login_login' : user,
+ 'login_password': data['password']},
+ req=req)
if "This login doesn't exist" in html \
or "The password is not valid" in html \
diff --git a/module/plugins/accounts/BitshareCom.py b/module/plugins/accounts/BitshareCom.py
index 912b58173..e71812891 100644
--- a/module/plugins/accounts/BitshareCom.py
+++ b/module/plugins/accounts/BitshareCom.py
@@ -27,7 +27,10 @@ class BitshareCom(Account):
def login(self, user, data, req):
html = self.load("https://bitshare.com/login.html",
- post={"user": user, "password": data['password'], "submit": "Login"}, req=req)
+ post={"user" : user,
+ "password": data['password'],
+ "submit" : "Login"},
+ req=req)
if "login" in req.lastEffectiveURL:
self.wrong_password()
diff --git a/module/plugins/accounts/CatShareNet.py b/module/plugins/accounts/CatShareNet.py
index 8eb422962..1a7355095 100644
--- a/module/plugins/accounts/CatShareNet.py
+++ b/module/plugins/accounts/CatShareNet.py
@@ -51,10 +51,11 @@ class CatShareNet(Account):
def login(self, user, data, req):
html = self.load("http://catshare.net/login", #@TODO: Revert to `https` in 0.4.10
- post={'user_email': user,
- 'user_password': data['password'],
- 'remindPassword': 0,
- 'user[submit]': "Login"}, req=req)
+ post={'user_email' : user,
+ 'user_password' : data['password'],
+ 'remindPassword': 0,
+ 'user[submit]' : "Login"},
+ req=req)
if not '<a href="/logout">Wyloguj</a>' in html:
self.wrong_password()
diff --git a/module/plugins/accounts/CloudzillaTo.py b/module/plugins/accounts/CloudzillaTo.py
index 5716c8d94..2677a5b55 100644
--- a/module/plugins/accounts/CloudzillaTo.py
+++ b/module/plugins/accounts/CloudzillaTo.py
@@ -28,9 +28,10 @@ class CloudzillaTo(Account):
def login(self, user, data, req):
html = self.load("https://www.cloudzilla.to/",
- post={'lusername': user,
- 'lpassword': data['password'],
- 'w' : "dologin"}, req=req)
+ post={'lusername': user,
+ 'lpassword': data['password'],
+ 'w' : "dologin"},
+ req=req)
if "ERROR" in html:
self.wrong_password()
diff --git a/module/plugins/accounts/CzshareCom.py b/module/plugins/accounts/CzshareCom.py
index f86264cf5..6212ffafd 100644
--- a/module/plugins/accounts/CzshareCom.py
+++ b/module/plugins/accounts/CzshareCom.py
@@ -45,9 +45,10 @@ class CzshareCom(Account):
def login(self, user, data, req):
html = self.load('https://sdilej.cz/index.php',
- post={"Prihlasit": "Prihlasit",
- "login-password": data['password'],
- "login-name": user}, req=req)
+ post={"Prihlasit" : "Prihlasit",
+ "login-password": data['password'],
+ "login-name" : user},
+ req=req)
if '<div class="login' in html:
self.wrong_password()
diff --git a/module/plugins/accounts/DebridItaliaCom.py b/module/plugins/accounts/DebridItaliaCom.py
index 16101d177..0fde5c6ca 100644
--- a/module/plugins/accounts/DebridItaliaCom.py
+++ b/module/plugins/accounts/DebridItaliaCom.py
@@ -37,7 +37,9 @@ class DebridItaliaCom(Account):
def login(self, user, data, req):
html = self.load("https://debriditalia.com/login.php",
- get={'u': user, 'p': data['password']}, req=req)
+ get={'u': user,
+ 'p': data['password']},
+ req=req)
if 'NO' in html:
self.wrong_password()
diff --git a/module/plugins/accounts/DepositfilesCom.py b/module/plugins/accounts/DepositfilesCom.py
index 24cbad486..ce2dc1923 100644
--- a/module/plugins/accounts/DepositfilesCom.py
+++ b/module/plugins/accounts/DepositfilesCom.py
@@ -28,8 +28,11 @@ class DepositfilesCom(Account):
def login(self, user, data, req):
- html = self.load("https://dfiles.eu/de/login.php", get={"return": "/de/gold/payment.php"},
- post={"login": user, "password": data['password']}, req=req)
+ html = self.load("https://dfiles.eu/de/login.php",
+ get={"return": "/de/gold/payment.php"},
+ post={"login" : user,
+ "password": data['password']},
+ req=req)
if r'<div class="error_message">Sie haben eine falsche Benutzername-Passwort-Kombination verwendet.</div>' in html:
self.wrong_password()
diff --git a/module/plugins/accounts/EuroshareEu.py b/module/plugins/accounts/EuroshareEu.py
index ffe30d02f..5d909b789 100644
--- a/module/plugins/accounts/EuroshareEu.py
+++ b/module/plugins/accounts/EuroshareEu.py
@@ -33,9 +33,10 @@ class EuroshareEu(Account):
def login(self, user, data, req):
html = self.load('http://euroshare.eu/customer-zone/login/',
- post={"trvale": "1",
- "login": user,
- "password": data['password']}, req=req)
+ post={"trvale" : "1",
+ "login" : user,
+ "password": data['password']},
+ req=req)
if u">Nesprávne prihlasovacie meno alebo heslo" in html:
self.wrong_password()
diff --git a/module/plugins/accounts/FastixRu.py b/module/plugins/accounts/FastixRu.py
index eaf12619a..d8c992bb3 100644
--- a/module/plugins/accounts/FastixRu.py
+++ b/module/plugins/accounts/FastixRu.py
@@ -16,7 +16,10 @@ class FastixRu(Account):
def load_account_info(self, user, req):
data = self.get_account_data(user)
- html = json_loads(self.load("http://fastix.ru/api_v2/", get={'apikey': data['api'], 'sub': "getaccountdetails"}), req=req)
+ html = json_loads(self.load("http://fastix.ru/api_v2/",
+ get={'apikey': data['api'],
+ 'sub' : "getaccountdetails"}),
+ req=req)
points = html['points']
kb = float(points) * 1024 ** 2 / 1000
@@ -30,7 +33,10 @@ class FastixRu(Account):
def login(self, user, data, req):
html = self.load("https://fastix.ru/api_v2/",
- get={'sub': "get_apikey", 'email': user, 'password': data['password']}, req=req)
+ get={'sub' : "get_apikey",
+ 'email' : user,
+ 'password': data['password']},
+ req=req)
api = json_loads(html)
api = api['apikey']
diff --git a/module/plugins/accounts/FastshareCz.py b/module/plugins/accounts/FastshareCz.py
index be3a91a16..e3c8235d6 100644
--- a/module/plugins/accounts/FastshareCz.py
+++ b/module/plugins/accounts/FastshareCz.py
@@ -40,10 +40,12 @@ class FastshareCz(Account):
def login(self, user, data, req):
req.cj.setCookie("fastshare.cz", "lang", "en")
- self.load('http://www.fastshare.cz/login', req=req) #: Do not remove or it will not login
+ self.load('http://www.fastshare.cz/login', req=req) #@NOTE: Do not remove or it will not login
html = self.load("https://www.fastshare.cz/sql.php",
- post={'login': user, 'heslo': data['password']}, req=req)
+ post={'login': user,
+ 'heslo': data['password']},
+ req=req)
if ">Wrong username or password" in html:
self.wrong_password()
diff --git a/module/plugins/accounts/FilecloudIo.py b/module/plugins/accounts/FilecloudIo.py
index 3c3f79ed8..512a7b67d 100644
--- a/module/plugins/accounts/FilecloudIo.py
+++ b/module/plugins/accounts/FilecloudIo.py
@@ -32,7 +32,8 @@ class FilecloudIo(Account):
akey = rep['akey']
self.accounts[user]['akey'] = akey #: Saved for hoster plugin
rep = self.load("http://api.filecloud.io/api-fetch_account_details.api",
- post={"akey": akey}, req=req)
+ post={"akey": akey},
+ req=req)
rep = json_loads(rep)
if rep['is_premium'] == 1:
diff --git a/module/plugins/accounts/FilefactoryCom.py b/module/plugins/accounts/FilefactoryCom.py
index a950217f4..561e56915 100644
--- a/module/plugins/accounts/FilefactoryCom.py
+++ b/module/plugins/accounts/FilefactoryCom.py
@@ -40,9 +40,10 @@ class FilefactoryCom(Account):
req.http.c.setopt(pycurl.REFERER, "http://www.filefactory.com/member/login.php")
html = self.load("https://www.filefactory.com/member/signin.php",
- post={"loginEmail" : user,
- "loginPassword": data['password'],
- "Submit" : "Sign In"}, req=req)
+ post={"loginEmail" : user,
+ "loginPassword": data['password'],
+ "Submit" : "Sign In"},
+ req=req)
if req.lastEffectiveURL != "http://www.filefactory.com/account/":
self.wrong_password()
diff --git a/module/plugins/accounts/FilejungleCom.py b/module/plugins/accounts/FilejungleCom.py
index 5b4092681..f5ee5889a 100644
--- a/module/plugins/accounts/FilejungleCom.py
+++ b/module/plugins/accounts/FilejungleCom.py
@@ -2,6 +2,7 @@
import re
import time
+import urlparse
from module.plugins.internal.Account import Account
@@ -37,13 +38,14 @@ class FilejungleCom(Account):
def login(self, user, data, req):
- html = self.load(self.URL + "login.php",
- post={"loginUserName": user,
- "loginUserPassword": data['password'],
- "loginFormSubmit": "Login",
- "recaptcha_challenge_field": "",
- "recaptcha_response_field": "",
- "recaptcha_shortencode_field": ""}, req=req)
+ html = self.load(urlparse.urljoin(self.URL, "login.php"),
+ post={"loginUserName" : user,
+ "loginUserPassword" : data['password'],
+ "loginFormSubmit" : "Login",
+ "recaptcha_challenge_field" : "",
+ "recaptcha_response_field" : "",
+ "recaptcha_shortencode_field": ""},
+ req=req)
if re.search(self.LOGIN_FAILED_PATTERN, html):
self.wrong_password()
diff --git a/module/plugins/accounts/FilerNet.py b/module/plugins/accounts/FilerNet.py
index acee71912..192905ebe 100644
--- a/module/plugins/accounts/FilerNet.py
+++ b/module/plugins/accounts/FilerNet.py
@@ -48,11 +48,12 @@ class FilerNet(Account):
token = re.search(self.TOKEN_PATTERN, html).group(1)
html = self.load("https://filer.net/login_check",
- post={"_username" : user,
- "_password" : data['password'],
- "_remember_me": "on",
- "_csrf_token" : token,
- "_target_path": "https://filer.net/"}, req=req)
+ post={"_username" : user,
+ "_password" : data['password'],
+ "_remember_me": "on",
+ "_csrf_token" : token,
+ "_target_path": "https://filer.net/"},
+ req=req)
if 'Logout' not in html:
self.wrong_password()
diff --git a/module/plugins/accounts/FilesMailRu.py b/module/plugins/accounts/FilesMailRu.py
index c8490bf2f..a8a2a3b46 100644
--- a/module/plugins/accounts/FilesMailRu.py
+++ b/module/plugins/accounts/FilesMailRu.py
@@ -21,10 +21,11 @@ class FilesMailRu(Account):
user, domain = user.split("@")
html = self.load("https://swa.mail.ru/cgi-bin/auth",
- post={"Domain": domain,
- "Login": user,
- "Password": data['password'],
- "Page": "http://files.mail.ru/"}, req=req)
+ post={"Domain" : domain,
+ "Login" : user,
+ "Password": data['password'],
+ "Page" : "http://files.mail.ru/"},
+ req=req)
if "Неверное имя пользователя или пароль" in html:
self.wrong_password()
diff --git a/module/plugins/accounts/FileserveCom.py b/module/plugins/accounts/FileserveCom.py
index 5c6c15167..a5c1b333b 100644
--- a/module/plugins/accounts/FileserveCom.py
+++ b/module/plugins/accounts/FileserveCom.py
@@ -19,8 +19,11 @@ class FileserveCom(Account):
def load_account_info(self, user, req):
data = self.get_account_data(user)
- html = self.load("http://app.fileserve.com/api/login/", post={"username": user, "password": data['password'],
- "submit": "Submit+Query"}, req=req)
+ html = self.load("http://app.fileserve.com/api/login/",
+ post={"username": user,
+ "password": data['password'],
+ "submit": "Submit+Query"},
+ req=req)
res = json_loads(html)
if res['type'] == "premium":
@@ -31,8 +34,11 @@ class FileserveCom(Account):
def login(self, user, data, req):
- html = self.load("http://app.fileserve.com/api/login/", post={"username": user, "password": data['password'],
- "submit": "Submit+Query"}, req=req)
+ html = self.load("http://app.fileserve.com/api/login/",
+ post={"username": user,
+ "password": data['password'],
+ "submit" : "Submit+Query"},
+ req=req)
res = json_loads(html)
if not res['type']:
@@ -40,5 +46,8 @@ class FileserveCom(Account):
# login at fileserv html
self.load("http://www.fileserve.com/login.php",
- post={"loginUserName": user, "loginUserPassword": data['password'], "autoLogin": "checked",
- "loginFormSubmit": "Login"}, req=req)
+ post={"loginUserName": user,
+ "loginUserPassword": data['password'],
+ "autoLogin": "checked",
+ "loginFormSubmit": "Login"},
+ req=req)
diff --git a/module/plugins/accounts/FourSharedCom.py b/module/plugins/accounts/FourSharedCom.py
index 9471e49ca..25a4b19b8 100644
--- a/module/plugins/accounts/FourSharedCom.py
+++ b/module/plugins/accounts/FourSharedCom.py
@@ -23,11 +23,12 @@ class FourSharedCom(Account):
req.cj.setCookie("4shared.com", "4langcookie", "en")
res = self.load("https://www.4shared.com/web/login",
- post={'login' : user,
- 'password' : data['password'],
- 'remember' : "on",
- '_remember': "on",
- 'returnTo' : "http://www.4shared.com/account/home.jsp"}, req=req)
+ post={'login' : user,
+ 'password' : data['password'],
+ 'remember' : "on",
+ '_remember': "on",
+ 'returnTo' : "http://www.4shared.com/account/home.jsp"},
+ req=req)
if 'Please log in to access your 4shared account' in res:
self.wrong_password()
diff --git a/module/plugins/accounts/FreakshareCom.py b/module/plugins/accounts/FreakshareCom.py
index 7548338f4..c19ea7177 100644
--- a/module/plugins/accounts/FreakshareCom.py
+++ b/module/plugins/accounts/FreakshareCom.py
@@ -44,7 +44,10 @@ class FreakshareCom(Account):
self.load("http://freakshare.com/index.php?language=EN", req=req)
html = self.load("https://freakshare.com/login.html",
- post={"submit": "Login", "user": user, "pass": data['password']}, req=req)
+ post={"submit": "Login",
+ "user" : user,
+ "pass" : data['password']},
+ req=req)
if ">Wrong Username or Password" in html:
self.wrong_password()
diff --git a/module/plugins/accounts/FshareVn.py b/module/plugins/accounts/FshareVn.py
index 3149d6548..f0891af9e 100644
--- a/module/plugins/accounts/FshareVn.py
+++ b/module/plugins/accounts/FshareVn.py
@@ -46,11 +46,11 @@ class FshareVn(Account):
def login(self, user, data, req):
html = self.load("https://www.fshare.vn/login.php",
- post={'LoginForm[email]' : user,
- 'LoginForm[password]' : data['password'],
- 'LoginForm[rememberMe]': 1,
- 'yt0' : "Login"},
- referer=True, req=req)
+ post={'LoginForm[email]' : user,
+ 'LoginForm[password]' : data['password'],
+ 'LoginForm[rememberMe]': 1,
+ 'yt0' : "Login"},
+ req=req)
if not re.search(r'<img\s+alt="VIP"', html):
self.wrong_password()
diff --git a/module/plugins/accounts/HellshareCz.py b/module/plugins/accounts/HellshareCz.py
index 76a9597ee..3a30f4d5a 100644
--- a/module/plugins/accounts/HellshareCz.py
+++ b/module/plugins/accounts/HellshareCz.py
@@ -68,11 +68,13 @@ class HellshareCz(Account):
self.log_debug("Already logged in")
return
- html = self.load('https://www.hellshare.com/login?do=loginForm-submit',
- post={"login": "Log in",
- "password": data['password'],
- "username": user,
- "perm_login": "on"}, req=req)
+ html = self.load("https://www.hellshare.com/login",
+ get={'do': "loginForm-submit"},
+ post={'login' : "Log in",
+ 'password' : data['password'],
+ 'username' : user,
+ 'perm_login': "on"},
+ req=req)
if "<p>You input a wrong user name or wrong password</p>" in html:
self.wrong_password()
diff --git a/module/plugins/accounts/HighWayMe.py b/module/plugins/accounts/HighWayMe.py
index f6baaa0a1..8be933c37 100644
--- a/module/plugins/accounts/HighWayMe.py
+++ b/module/plugins/accounts/HighWayMe.py
@@ -41,7 +41,10 @@ class HighWayMe(Account):
def login(self, user, data, req):
html = self.load("https://high-way.me/api.php?login",
- post={'login': '1', 'user': user, 'pass': data['password']}, req=req)
+ post={'login': '1',
+ 'user': user,
+ 'pass': data['password']},
+ req=req)
if 'UserOrPassInvalid' in html:
self.wrong_password()
diff --git a/module/plugins/accounts/Keep2ShareCc.py b/module/plugins/accounts/Keep2ShareCc.py
index 71c099bea..5c6b3cce8 100644
--- a/module/plugins/accounts/Keep2ShareCc.py
+++ b/module/plugins/accounts/Keep2ShareCc.py
@@ -63,10 +63,11 @@ class Keep2ShareCc(Account):
req.cj.setCookie("keep2share.cc", "lang", "en")
html = self.load("https://keep2share.cc/login.html",
- post={'LoginForm[username]' : user,
- 'LoginForm[password]' : data['password'],
- 'LoginForm[rememberMe]': 1,
- 'yt0' : ""}, req=req)
+ post={'LoginForm[username]' : user,
+ 'LoginForm[password]' : data['password'],
+ 'LoginForm[rememberMe]': 1,
+ 'yt0' : ""},
+ req=req)
if re.search(self.LOGIN_FAIL_PATTERN, html):
self.wrong_password()
diff --git a/module/plugins/accounts/LetitbitNet.py b/module/plugins/accounts/LetitbitNet.py
index 6b8fcf960..a26e895c4 100644
--- a/module/plugins/accounts/LetitbitNet.py
+++ b/module/plugins/accounts/LetitbitNet.py
@@ -18,7 +18,9 @@ class LetitbitNet(Account):
## DISABLED BECAUSE IT GET 'key exausted' EVEN IF VALID ##
# api_key = self.get_account_data(user)['password']
# json_data = [api_key, ['key/info']]
- # api_rep = self.load('http://api.letitbit.net/json', post={'r': json_dumps(json_data)}, req=req)
+ # api_rep = self.load("http://api.letitbit.net/json",
+ # post={'r': json_dumps(json_data)},
+ # req=req)
# self.log_debug("API Key Info: " + api_rep)
# api_rep = json_loads(api_rep)
#
diff --git a/module/plugins/accounts/LinksnappyCom.py b/module/plugins/accounts/LinksnappyCom.py
index 466495ac0..aa7db79e0 100644
--- a/module/plugins/accounts/LinksnappyCom.py
+++ b/module/plugins/accounts/LinksnappyCom.py
@@ -19,7 +19,10 @@ class LinksnappyCom(Account):
def load_account_info(self, user, req):
data = self.get_account_data(user)
r = self.load('http://gen.linksnappy.com/lseAPI.php',
- get={'act': 'USERDETAILS', 'username': user, 'password': hashlib.md5(data['password'], req=req).hexdigest()})
+ get={'act' : 'USERDETAILS',
+ 'username': user,
+ 'password': hashlib.md5(data['password'],
+ req=req).hexdigest()})
self.log_debug("JSON data: " + r)
@@ -51,9 +54,10 @@ class LinksnappyCom(Account):
def login(self, user, data, req):
html = self.load("https://gen.linksnappy.com/lseAPI.php",
- get={'act' : 'USERDETAILS',
- 'username': user,
- 'password': hashlib.md5(data['password'], req=req).hexdigest()})
+ get={'act' : 'USERDETAILS',
+ 'username': user,
+ 'password': hashlib.md5(data['password'],
+ req=req).hexdigest()})
if "Invalid Account Details" in html:
self.wrong_password()
diff --git a/module/plugins/accounts/MegaDebridEu.py b/module/plugins/accounts/MegaDebridEu.py
index 7a6e36f05..817dd800f 100644
--- a/module/plugins/accounts/MegaDebridEu.py
+++ b/module/plugins/accounts/MegaDebridEu.py
@@ -21,7 +21,10 @@ class MegaDebridEu(Account):
def load_account_info(self, user, req):
data = self.get_account_data(user)
jsonResponse = self.load(self.API_URL,
- get={'action': 'connectUser', 'login': user, 'password': data['password']}, req=req)
+ get={'action' : 'connectUser',
+ 'login' : user,
+ 'password': data['password']},
+ req=req)
res = json_loads(jsonResponse)
if res['response_code'] == "ok":
@@ -33,7 +36,10 @@ class MegaDebridEu(Account):
def login(self, user, data, req):
jsonResponse = self.load(self.API_URL,
- get={'action': 'connectUser', 'login': user, 'password': data['password']}, req=req)
+ get={'action' : 'connectUser',
+ 'login' : user,
+ 'password': data['password']},
+ req=req)
res = json_loads(jsonResponse)
if res['response_code'] != "ok":
self.wrong_password()
diff --git a/module/plugins/accounts/MegaRapidCz.py b/module/plugins/accounts/MegaRapidCz.py
index c8650ed8e..d2f6cfaf7 100644
--- a/module/plugins/accounts/MegaRapidCz.py
+++ b/module/plugins/accounts/MegaRapidCz.py
@@ -53,8 +53,9 @@ class MegaRapidCz(Account):
html = html[start + 33:]
hashes = html[0:32]
html = self.load("https://megarapid.cz/prihlaseni/",
- post={"hash": hashes,
- "login": user,
- "pass1": data['password'],
- "remember": 0,
- "sbmt": u"Přihlásit"}, req=req)
+ post={"hash" : hashes,
+ "login" : user,
+ "pass1" : data['password'],
+ "remember": 1,
+ "sbmt" : u"Přihlásit"},
+ req=req)
diff --git a/module/plugins/accounts/MegaRapidoNet.py b/module/plugins/accounts/MegaRapidoNet.py
index ddb7e090a..aa92f957a 100644
--- a/module/plugins/accounts/MegaRapidoNet.py
+++ b/module/plugins/accounts/MegaRapidoNet.py
@@ -42,7 +42,9 @@ class MegaRapidoNet(Account):
def login(self, user, data, req):
self.load("http://megarapido.net/login", req=req)
self.load("http://megarapido.net/painel_user/ajax/logar.php",
- post={'login': user, 'senha': data['password']}, req=req)
+ post={'login': user,
+ 'senha': data['password']},
+ req=req)
html = self.load("http://megarapido.net/gerador", req=req)
diff --git a/module/plugins/accounts/MegasharesCom.py b/module/plugins/accounts/MegasharesCom.py
index 3aa26692c..d68002783 100644
--- a/module/plugins/accounts/MegasharesCom.py
+++ b/module/plugins/accounts/MegasharesCom.py
@@ -38,10 +38,11 @@ class MegasharesCom(Account):
def login(self, user, data, req):
html = self.load('http://d01.megashares.com/myms_login.php',
- post={"httpref" : "",
- "myms_login" : "Login",
- "mymslogin_name": user,
- "mymspassword" : data['password']}, req=req)
+ post={"httpref" : "",
+ "myms_login" : "Login",
+ "mymslogin_name": user,
+ "mymspassword" : data['password']},
+ req=req)
if not '<span class="b ml">%s</span>' % user in html:
self.wrong_password()
diff --git a/module/plugins/accounts/MultishareCz.py b/module/plugins/accounts/MultishareCz.py
index ddb605ac7..7052f2d7a 100644
--- a/module/plugins/accounts/MultishareCz.py
+++ b/module/plugins/accounts/MultishareCz.py
@@ -35,9 +35,10 @@ class MultishareCz(Account):
def login(self, user, data, req):
html = self.load('https://www.multishare.cz/html/prihlaseni_process.php',
- post={"akce" : "Přihlásit",
- "heslo": data['password'],
- "jmeno": user}, req=req)
+ post={"akce" : "Přihlásit",
+ "heslo": data['password'],
+ "jmeno": user},
+ req=req)
if '<div class="akce-chyba akce">' in html:
self.wrong_password()
diff --git a/module/plugins/accounts/MyfastfileCom.py b/module/plugins/accounts/MyfastfileCom.py
index aa2dde191..4e644dace 100644
--- a/module/plugins/accounts/MyfastfileCom.py
+++ b/module/plugins/accounts/MyfastfileCom.py
@@ -27,7 +27,9 @@ class MyfastfileCom(Account):
def login(self, user, data, req):
#: Password to use is the API-Password written in http://myfastfile.com/myaccount
html = self.load("https://myfastfile.com/api.php",
- get={"user": user, "pass": data['password']}, req=req)
+ get={"user": user,
+ "pass": data['password']},
+ req=req)
self.log_debug("JSON data: " + html)
diff --git a/module/plugins/accounts/NitroflareCom.py b/module/plugins/accounts/NitroflareCom.py
index c17f0b8b4..f5845a0dd 100644
--- a/module/plugins/accounts/NitroflareCom.py
+++ b/module/plugins/accounts/NitroflareCom.py
@@ -29,7 +29,8 @@ class NitroflareCom(Account):
premium = False
html = self.load("https://nitroflare.com/member",
- get={'s': "premium"}, req=req)
+ get={'s': "premium"},
+ req=req)
m = re.search(self.VALID_UNTIL_PATTERN, html)
if m:
@@ -72,10 +73,11 @@ class NitroflareCom(Account):
token = re.search(self.TOKEN_PATTERN, html).group(1)
html = self.load("https://nitroflare.com/login",
- post={'login' : "",
- 'email' : user,
- 'password': data['password'],
- 'token' : token}, req=req)
+ post={'login' : "",
+ 'email' : user,
+ 'password': data['password'],
+ 'token' : token},
+ req=req)
if re.search(self.LOGIN_FAIL_PATTERN, html):
self.wrong_password()
diff --git a/module/plugins/accounts/NoPremiumPl.py b/module/plugins/accounts/NoPremiumPl.py
index 6f82f3c97..6b7ac6d81 100644
--- a/module/plugins/accounts/NoPremiumPl.py
+++ b/module/plugins/accounts/NoPremiumPl.py
@@ -78,4 +78,6 @@ class NoPremiumPl(Account):
def run_auth_query(self):
- return self._self.load(self.API_URL, post=self.create_auth_query(), req=req)
+ return self.load(self.API_URL,
+ post=self.create_auth_query(),
+ req=req)
diff --git a/module/plugins/accounts/NowVideoSx.py b/module/plugins/accounts/NowVideoSx.py
index e679367d6..6f6093dbb 100644
--- a/module/plugins/accounts/NowVideoSx.py
+++ b/module/plugins/accounts/NowVideoSx.py
@@ -49,7 +49,9 @@ class NowVideoSx(Account):
def login(self, user, data, req):
html = self.load("http://www.nowvideo.sx/login.php",
- post={'user': user, 'pass': data['password']}, req=req)
+ post={'user': user,
+ 'pass': data['password']},
+ req=req)
if re.search(r'>Log In<', html):
self.wrong_password()
diff --git a/module/plugins/accounts/OboomCom.py b/module/plugins/accounts/OboomCom.py
index 958613e9e..2ec5ea53e 100644
--- a/module/plugins/accounts/OboomCom.py
+++ b/module/plugins/accounts/OboomCom.py
@@ -35,7 +35,10 @@ class OboomCom(Account):
salt = passwd[::-1]
pbkdf2 = PBKDF2(passwd, salt, 1000).hexread(16)
- result = json_loads(self.load("https://www.oboom.com/1/login", get={"auth": user, "pass": pbkdf2}), req=req)
+ result = json_loads(self.load("https://www.oboom.com/1/login",
+ get={"auth": user,
+ "pass": pbkdf2}),
+ req=req)
if not result[0] == 200:
self.log_warning(_("Failed to log in: %s") % result[1])
diff --git a/module/plugins/accounts/OneFichierCom.py b/module/plugins/accounts/OneFichierCom.py
index 12be92c3e..62ff3e099 100644
--- a/module/plugins/accounts/OneFichierCom.py
+++ b/module/plugins/accounts/OneFichierCom.py
@@ -47,11 +47,12 @@ class OneFichierCom(Account):
req.http.c.setopt(pycurl.REFERER, "https://1fichier.com/login.pl?lg=en")
html = self.load("https://1fichier.com/login.pl?lg=en",
- post={'mail' : user,
- 'pass' : data['password'],
- 'It' : "on",
- 'purge' : "off",
- 'valider': "Send"}, req=req)
+ post={'mail' : user,
+ 'pass' : data['password'],
+ 'It' : "on",
+ 'purge' : "off",
+ 'valider': "Send"},
+ req=req)
if '>Invalid email address' in html or '>Invalid password' in html:
self.wrong_password()
diff --git a/module/plugins/accounts/OverLoadMe.py b/module/plugins/accounts/OverLoadMe.py
index d47a579f2..22f2f4d9f 100644
--- a/module/plugins/accounts/OverLoadMe.py
+++ b/module/plugins/accounts/OverLoadMe.py
@@ -17,8 +17,9 @@ class OverLoadMe(Account):
def load_account_info(self, user, req):
data = self.get_account_data(user)
html = self.load("https://api.over-load.me/account.php",
- get={'user': user,
- 'auth': data['password']}, req=req).strip()
+ get={'user': user,
+ 'auth': data['password']},
+ req=req).strip()
data = json_loads(html)
self.log_debug(data)
@@ -32,8 +33,9 @@ class OverLoadMe(Account):
def login(self, user, data, req):
jsondata = self.load("https://api.over-load.me/account.php",
- get={'user': user,
- 'auth': data['password']}, req=req).strip()
+ get={'user': user,
+ 'auth': data['password']},
+ req=req).strip()
data = json_loads(jsondata)
diff --git a/module/plugins/accounts/PremiumTo.py b/module/plugins/accounts/PremiumTo.py
index 639ea1529..af51f8f16 100644
--- a/module/plugins/accounts/PremiumTo.py
+++ b/module/plugins/accounts/PremiumTo.py
@@ -17,7 +17,9 @@ class PremiumTo(Account):
def load_account_info(self, user, req):
traffic = self.load("http://premium.to/api/straffic.php", #@TODO: Revert to `https` in 0.4.10
- get={'username': self.username, 'password': self.password}, req=req)
+ get={'username': self.username,
+ 'password': self.password},
+ req=req)
if "wrong username" not in traffic:
trafficleft = sum(map(float, traffic.split(';'))) / 1024 #@TODO: Remove `/ 1024` in 0.4.10
@@ -30,7 +32,9 @@ class PremiumTo(Account):
self.username = user
self.password = data['password']
authcode = self.load("http://premium.to/api/getauthcode.php", #@TODO: Revert to `https` in 0.4.10
- get={'username': user, 'password': self.password}, req=req)
+ get={'username': user,
+ 'password': self.password},
+ req=req)
if "wrong username" in authcode:
self.wrong_password()
diff --git a/module/plugins/accounts/QuickshareCz.py b/module/plugins/accounts/QuickshareCz.py
index 17d3bfce8..07eae058f 100644
--- a/module/plugins/accounts/QuickshareCz.py
+++ b/module/plugins/accounts/QuickshareCz.py
@@ -34,9 +34,10 @@ class QuickshareCz(Account):
def login(self, user, data, req):
html = self.load('http://www.quickshare.cz/html/prihlaseni_process.php',
- post={"akce": u'Přihlásit',
- "heslo": data['password'],
- "jmeno": user}, req=req)
+ post={"akce" : u'Přihlásit',
+ "heslo": data['password'],
+ "jmeno": user},
+ req=req)
if u'>Takový uživatel neexistuje.<' in html or u'>Špatné heslo.<' in html:
self.wrong_password()
diff --git a/module/plugins/accounts/RapideoPl.py b/module/plugins/accounts/RapideoPl.py
index 1f4140846..173b29308 100644
--- a/module/plugins/accounts/RapideoPl.py
+++ b/module/plugins/accounts/RapideoPl.py
@@ -78,4 +78,6 @@ class RapideoPl(Account):
def run_auth_query(self):
- return self._self.load(self.API_URL, post=self.create_auth_query(), req=req)
+ return self.load(self.API_URL,
+ post=self.create_auth_query(),
+ req=req)
diff --git a/module/plugins/accounts/RapidgatorNet.py b/module/plugins/accounts/RapidgatorNet.py
index c17765e12..098122aea 100644
--- a/module/plugins/accounts/RapidgatorNet.py
+++ b/module/plugins/accounts/RapidgatorNet.py
@@ -1,5 +1,7 @@
# -*- coding: utf-8 -*-
+import urlparse
+
from module.plugins.internal.Account import Account
from module.common.json_layer import json_loads
@@ -27,7 +29,9 @@ class RapidgatorNet(Account):
sid = self.get_account_data(user).get('sid', None)
assert sid
- html = self.load("%s/info" % self.API_URL, get={'sid': sid}, req=req)
+ html = self.load(urlparse.urljoin(self.API_URL, "info"),
+ get={'sid': sid},
+ req=req)
self.log_debug("API:USERINFO", html)
@@ -54,7 +58,10 @@ class RapidgatorNet(Account):
def login(self, user, data, req):
try:
- html = self.load('%s/login' % self.API_URL, post={"username": user, "password": data['password']}, req=req)
+ html = self.load(urlparse.urljoin(self.API_URL, "login"),
+ post={"username": user,
+ "password": data['password']},
+ req=req)
self.log_debug("API:LOGIN", html)
diff --git a/module/plugins/accounts/RapiduNet.py b/module/plugins/accounts/RapiduNet.py
index 256b612a1..6edd83592 100644
--- a/module/plugins/accounts/RapiduNet.py
+++ b/module/plugins/accounts/RapiduNet.py
@@ -48,16 +48,18 @@ class RapiduNet(Account):
def login(self, user, data, req):
self.load("https://rapidu.net/ajax.php",
- get={'a': "getChangeLang"},
- post={'_go' : "",
- 'lang': "en"}, req=req)
+ get={'a': "getChangeLang"},
+ post={'_go' : "",
+ 'lang': "en"},
+ req=req)
json = json_loads(self.load("https://rapidu.net/ajax.php",
- get={'a': "getUserLogin"},
- post={'_go' : "",
- 'login' : user,
- 'pass' : data['password'],
- 'remember': "1"}, req=req))
+ get={'a': "getUserLogin"},
+ post={'_go' : "",
+ 'login' : user,
+ 'pass' : data['password'],
+ 'remember': "1"},
+ req=req))
self.log_debug(json)
diff --git a/module/plugins/accounts/RealdebridCom.py b/module/plugins/accounts/RealdebridCom.py
index f16ebed27..1df84a7b0 100644
--- a/module/plugins/accounts/RealdebridCom.py
+++ b/module/plugins/accounts/RealdebridCom.py
@@ -33,7 +33,9 @@ class RealdebridCom(Account):
self.pin_code = False
html = self.load("https://real-debrid.com/ajax/login.php",
- get={"user": user, "pass": data['password']}, req=req)
+ get={"user": user,
+ "pass": data['password']},
+ req=req)
if "Your login informations are incorrect" in html:
self.wrong_password()
diff --git a/module/plugins/accounts/RehostTo.py b/module/plugins/accounts/RehostTo.py
index 43c0cb029..deaf55340 100644
--- a/module/plugins/accounts/RehostTo.py
+++ b/module/plugins/accounts/RehostTo.py
@@ -26,7 +26,9 @@ class RehostTo(Account):
session = html.split(",")[1].split("=")[1]
html = self.load("http://rehost.to/api.php",
- get={'cmd': "get_premium_credits", 'long_ses': session}, req=req)
+ get={'cmd' : "get_premium_credits",
+ 'long_ses': session},
+ req=req)
if html.strip() == "0,0" or "ERROR" in html:
self.log_debug(html)
@@ -46,7 +48,10 @@ class RehostTo(Account):
def login(self, user, data, req):
html = self.load("https://rehost.to/api.php",
- get={'cmd': "login", 'user': user, 'pass': data['password']}, req=req)
+ get={'cmd': "login",
+ 'user': user,
+ 'pass': data['password']},
+ req=req)
if "ERROR" in html:
self.log_debug(html)
diff --git a/module/plugins/accounts/SimplyPremiumCom.py b/module/plugins/accounts/SimplyPremiumCom.py
index e030a7dd8..c9c6e2227 100644
--- a/module/plugins/accounts/SimplyPremiumCom.py
+++ b/module/plugins/accounts/SimplyPremiumCom.py
@@ -41,7 +41,8 @@ class SimplyPremiumCom(Account):
req.cj.setCookie("simply-premium.com", "lang", "EN")
html = self.load("https://www.simply-premium.com/login.php",
- post={'key': user} if not data['password'] else {'login_name': user, 'login_pass': data['password']}, req=req)
+ post={'key': user} if not data['password'] else {'login_name': user, 'login_pass': data['password']},
+ req=req)
if 'logout' not in html:
self.wrong_password()
diff --git a/module/plugins/accounts/SmoozedCom.py b/module/plugins/accounts/SmoozedCom.py
index 853963c4a..a13bd14a8 100644
--- a/module/plugins/accounts/SmoozedCom.py
+++ b/module/plugins/accounts/SmoozedCom.py
@@ -75,4 +75,6 @@ class SmoozedCom(Account):
encrypted = PBKDF2(password, salt, iterations=1000).hexread(32)
return json_loads(self.load("http://www2.smoozed.com/api/login",
- get={'auth': user, 'password': encrypted}, req=req))
+ get={'auth': user,
+ 'password': encrypted},
+ req=req))
diff --git a/module/plugins/accounts/TurbobitNet.py b/module/plugins/accounts/TurbobitNet.py
index 518ed66f8..18b6a658d 100644
--- a/module/plugins/accounts/TurbobitNet.py
+++ b/module/plugins/accounts/TurbobitNet.py
@@ -34,9 +34,10 @@ class TurbobitNet(Account):
req.cj.setCookie("turbobit.net", "user_lang", "en")
html = self.load("http://turbobit.net/user/login",
- post={"user[login]": user,
- "user[pass]": data['password'],
- "user[submit]": "Login"}, req=req)
+ post={"user[login]" : user,
+ "user[pass]" : data['password'],
+ "user[submit]": "Login"},
+ req=req)
if not '<div class="menu-item user-name">' in html:
self.wrong_password()
diff --git a/module/plugins/accounts/UlozTo.py b/module/plugins/accounts/UlozTo.py
index e83124b81..b18428887 100644
--- a/module/plugins/accounts/UlozTo.py
+++ b/module/plugins/accounts/UlozTo.py
@@ -36,13 +36,14 @@ class UlozTo(Account):
action = re.findall('<form action="(.+?)"', login_page)[1].replace('&amp;', '&')
token = re.search('_token_" value="(.+?)"', login_page).group(1)
- html = self.load(urlparse.urljoin("https://www.ulozto.net/", action, req=req),
- post={'_token_' : token,
- 'do' : "loginForm-submit",
- 'login' : u"Přihlásit",
- 'password': data['password'],
- 'username': user,
- 'remember': "on"})
+ html = self.load(urlparse.urljoin("https://www.ulozto.net/", action),
+ post={'_token_' : token,
+ 'do' : "loginForm-submit",
+ 'login' : u"Přihlásit",
+ 'password': data['password'],
+ 'username': user,
+ 'remember': "on"},
+ req=req)
if '<div class="flash error">' in html:
self.wrong_password()
diff --git a/module/plugins/accounts/UploadableCh.py b/module/plugins/accounts/UploadableCh.py
index e196620af..0fce8eeac 100644
--- a/module/plugins/accounts/UploadableCh.py
+++ b/module/plugins/accounts/UploadableCh.py
@@ -24,10 +24,11 @@ class UploadableCh(Account):
def login(self, user, data, req):
html = self.load("http://www.uploadable.ch/login.php",
- post={'userName' : user,
- 'userPassword' : data['password'],
- 'autoLogin' : "1",
- 'action__login': "normalLogin"}, req=req)
+ post={'userName' : user,
+ 'userPassword' : data['password'],
+ 'autoLogin' : "1",
+ 'action__login': "normalLogin"},
+ req=req)
if "Login failed" in html:
self.wrong_password()
diff --git a/module/plugins/accounts/UploadedTo.py b/module/plugins/accounts/UploadedTo.py
index 6a9270153..956d43a72 100644
--- a/module/plugins/accounts/UploadedTo.py
+++ b/module/plugins/accounts/UploadedTo.py
@@ -64,7 +64,10 @@ class UploadedTo(Account):
#: req.cj.setCookie("uploaded.net", "lang", "en")
html = self.load("https://uploaded.net/io/login",
- post={'id': user, 'pw': data['password'], '_': ""}, req=req)
+ post={'id': user,
+ 'pw': data['password'],
+ '_': ""},
+ req=req)
if '"err"' in html:
self.wrong_password()
diff --git a/module/plugins/accounts/UploadheroCom.py b/module/plugins/accounts/UploadheroCom.py
index b72102300..ffae50ce1 100644
--- a/module/plugins/accounts/UploadheroCom.py
+++ b/module/plugins/accounts/UploadheroCom.py
@@ -35,7 +35,9 @@ class UploadheroCom(Account):
def login(self, user, data, req):
html = self.load("http://uploadhero.co/lib/connexion.php",
- post={"pseudo_login": user, "password_login": data['password']}, req=req)
+ post={"pseudo_login": user,
+ "password_login": data['password']},
+ req=req)
if "mot de passe invalide" in html:
self.wrong_password()
diff --git a/module/plugins/accounts/UploadingCom.py b/module/plugins/accounts/UploadingCom.py
index 5052266a4..6f6e0eed5 100644
--- a/module/plugins/accounts/UploadingCom.py
+++ b/module/plugins/accounts/UploadingCom.py
@@ -61,5 +61,8 @@ class UploadingCom(Account):
("uploading.com", "_lang" , "en")])
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"})
+ self.load("https://uploading.com/general/login_form/?JsHttpRequest=%s-xml" % long(time.time() * 1000),
+ post={'email' : user,
+ 'password': data['password'],
+ 'remember': "on"},
+ req=req)
diff --git a/module/plugins/accounts/WebshareCz.py b/module/plugins/accounts/WebshareCz.py
index c8711838f..9f392bdb0 100644
--- a/module/plugins/accounts/WebshareCz.py
+++ b/module/plugins/accounts/WebshareCz.py
@@ -42,8 +42,9 @@ class WebshareCz(Account):
def login(self, user, data, req):
salt = self.load("https://webshare.cz/api/salt/",
- post={'username_or_email': user,
- 'wst' : ""}, req=req)
+ post={'username_or_email': user,
+ 'wst' : ""},
+ req=req)
if "<status>OK</status>" not in salt:
self.wrong_password()
@@ -53,11 +54,12 @@ class WebshareCz(Account):
digest = hashlib.md5(user + ":Webshare:" + password).hexdigest()
login = self.load("https://webshare.cz/api/login/",
- post={'digest' : digest,
- 'keep_logged_in' : 1,
- 'password' : password,
- 'username_or_email': user,
- 'wst' : ""}, req=req)
+ post={'digest' : digest,
+ 'keep_logged_in' : 1,
+ 'password' : password,
+ 'username_or_email': user,
+ 'wst' : ""},
+ req=req)
if "<status>OK</status>" not in login:
self.wrong_password()
diff --git a/module/plugins/accounts/YibaishiwuCom.py b/module/plugins/accounts/YibaishiwuCom.py
index fad22b4c6..dd4e33739 100644
--- a/module/plugins/accounts/YibaishiwuCom.py
+++ b/module/plugins/accounts/YibaishiwuCom.py
@@ -30,10 +30,11 @@ class YibaishiwuCom(Account):
def login(self, user, data, req):
html = self.load("https://passport.115.com/?ac=login",
- post={"back": "http://www.115.com/",
- "goto": "http://115.com/",
- "login[account]": user,
- "login[passwd]": data['password']}, req=req)
+ post={"back" : "http://www.115.com/",
+ "goto" : "http://115.com/",
+ "login[account]": user,
+ "login[passwd]" : data['password']},
+ req=req)
if not 'var USER_PERMISSION = {' in html:
self.wrong_password()
diff --git a/module/plugins/accounts/ZeveraCom.py b/module/plugins/accounts/ZeveraCom.py
index bec59be46..5415575c5 100644
--- a/module/plugins/accounts/ZeveraCom.py
+++ b/module/plugins/accounts/ZeveraCom.py
@@ -63,8 +63,9 @@ class ZeveraCom(Account):
get_data.update(kwargs)
res = self.load(self.API_URL,
- get=get_data,
- just_header=just_header, req=req)
+ get=get_data,
+ just_header=just_header,
+ req=req)
self.log_debug(res)