summaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
Diffstat (limited to 'module')
-rw-r--r--module/plugins/accounts/AlldebridCom.py1
-rw-r--r--module/plugins/accounts/BayfilesCom.py1
-rw-r--r--module/plugins/accounts/BitshareCom.py1
-rw-r--r--module/plugins/accounts/CzshareCom.py1
-rw-r--r--module/plugins/accounts/DebridItaliaCom.py13
-rw-r--r--module/plugins/accounts/DepositfilesCom.py1
-rw-r--r--module/plugins/accounts/EuroshareEu.py1
-rw-r--r--module/plugins/accounts/FastixRu.py1
-rw-r--r--module/plugins/accounts/FastshareCz.py1
-rw-r--r--module/plugins/accounts/FilecloudIo.py1
-rw-r--r--module/plugins/accounts/FilefactoryCom.py1
-rw-r--r--module/plugins/accounts/FilejungleCom.py1
-rw-r--r--module/plugins/accounts/FilerNet.py1
-rw-r--r--module/plugins/accounts/FilesMailRu.py1
-rw-r--r--module/plugins/accounts/FileserveCom.py1
-rw-r--r--module/plugins/accounts/FourSharedCom.py1
-rw-r--r--module/plugins/accounts/FreakshareCom.py1
-rw-r--r--module/plugins/accounts/FreeWayMe.py1
-rw-r--r--module/plugins/accounts/FshareVn.py1
-rw-r--r--module/plugins/accounts/HellshareCz.py1
-rw-r--r--module/plugins/accounts/LetitbitNet.py1
-rw-r--r--module/plugins/accounts/LinksnappyCom.py1
-rw-r--r--module/plugins/accounts/MegaDebridEu.py1
-rw-r--r--module/plugins/accounts/MegaRapidCz.py1
-rw-r--r--module/plugins/accounts/MegasharesCom.py1
-rw-r--r--module/plugins/accounts/MultishareCz.py1
-rw-r--r--module/plugins/accounts/MyfastfileCom.py1
-rwxr-xr-xmodule/plugins/accounts/NetloadIn.py1
-rw-r--r--module/plugins/accounts/OneFichierCom.py1
-rw-r--r--module/plugins/accounts/OverLoadMe.py1
-rw-r--r--module/plugins/accounts/PremiumTo.py1
-rw-r--r--module/plugins/accounts/PremiumizeMe.py1
-rw-r--r--module/plugins/accounts/QuickshareCz.py1
-rw-r--r--module/plugins/accounts/RPNetBiz.py1
-rw-r--r--module/plugins/accounts/RapidgatorNet.py1
-rw-r--r--module/plugins/accounts/RapidshareCom.py1
-rw-r--r--module/plugins/accounts/RealdebridCom.py1
-rw-r--r--module/plugins/accounts/RehostTo.py1
-rw-r--r--module/plugins/accounts/ShareonlineBiz.py1
-rw-r--r--module/plugins/accounts/SimplyPremiumCom.py1
-rw-r--r--module/plugins/accounts/SimplydebridCom.py1
-rw-r--r--module/plugins/accounts/StahnuTo.py1
-rw-r--r--module/plugins/accounts/TurbobitNet.py1
-rw-r--r--module/plugins/accounts/UlozTo.py1
-rw-r--r--module/plugins/accounts/UnrestrictLi.py1
-rw-r--r--module/plugins/accounts/UploadedTo.py1
-rw-r--r--module/plugins/accounts/UploadheroCom.py1
-rw-r--r--module/plugins/accounts/UploadingCom.py1
-rw-r--r--module/plugins/accounts/YibaishiwuCom.py1
-rw-r--r--module/plugins/accounts/ZeveraCom.py1
50 files changed, 57 insertions, 5 deletions
diff --git a/module/plugins/accounts/AlldebridCom.py b/module/plugins/accounts/AlldebridCom.py
index 3ebdae629..842d4c060 100644
--- a/module/plugins/accounts/AlldebridCom.py
+++ b/module/plugins/accounts/AlldebridCom.py
@@ -44,6 +44,7 @@ class AlldebridCom(Account):
account_info = {"validuntil": exp_time, "trafficleft": -1}
return account_info
+
def login(self, user, data, req):
urlparams = urlencode({'action': 'login', 'login_login': user, 'login_password': data['password']})
page = req.load("http://www.alldebrid.com/register/?%s" % urlparams)
diff --git a/module/plugins/accounts/BayfilesCom.py b/module/plugins/accounts/BayfilesCom.py
index b1166b83a..2b6d45a18 100644
--- a/module/plugins/accounts/BayfilesCom.py
+++ b/module/plugins/accounts/BayfilesCom.py
@@ -28,6 +28,7 @@ class BayfilesCom(Account):
return {"premium": bool(response['premium']), "trafficleft": -1,
"validuntil": response['expires'] if response['expires'] >= int(time()) else -1}
+
def login(self, user, data, req):
response = json_loads(req.load("http://api.bayfiles.com/v1/account/login/%s/%s" % (user, data['password'])))
self.logDebug(response)
diff --git a/module/plugins/accounts/BitshareCom.py b/module/plugins/accounts/BitshareCom.py
index ea1cca53b..910c81b4a 100644
--- a/module/plugins/accounts/BitshareCom.py
+++ b/module/plugins/accounts/BitshareCom.py
@@ -24,6 +24,7 @@ class BitshareCom(Account):
return {"validuntil": -1, "trafficleft": -1, "premium": True}
+
def login(self, user, data, req):
page = req.load("http://bitshare.com/login.html",
post={"user": user, "password": data['password'], "submit": "Login"}, cookies=True)
diff --git a/module/plugins/accounts/CzshareCom.py b/module/plugins/accounts/CzshareCom.py
index ea24a4e71..153b47073 100644
--- a/module/plugins/accounts/CzshareCom.py
+++ b/module/plugins/accounts/CzshareCom.py
@@ -32,6 +32,7 @@ class CzshareCom(Account):
validuntil = mktime(strptime(m.group(3), '%d.%m.%y %H:%M'))
return {"validuntil": validuntil, "trafficleft": credits}
+
def login(self, user, data, req):
html = req.load('https://sdilej.cz/index.php', post={
"Prihlasit": "Prihlasit",
diff --git a/module/plugins/accounts/DebridItaliaCom.py b/module/plugins/accounts/DebridItaliaCom.py
index 754d3467d..48b46cc0b 100644
--- a/module/plugins/accounts/DebridItaliaCom.py
+++ b/module/plugins/accounts/DebridItaliaCom.py
@@ -20,18 +20,21 @@ class DebridItaliaCom(Account):
def loadAccountInfo(self, user, req):
- if 'Account premium not activated' in self.html:
+ html = req.load("http://debriditalia.com/")
+
+ if 'Account premium not activated' in html:
return {"premium": False, "validuntil": None, "trafficleft": None}
- m = re.search(self.WALID_UNTIL_PATTERN, self.html)
+ m = re.search(self.WALID_UNTIL_PATTERN, html)
if m:
validuntil = int(time.mktime(time.strptime(m.group('D'), "%d/%m/%Y %H:%M")))
return {"premium": True, "validuntil": validuntil, "trafficleft": -1}
else:
self.logError("Unable to retrieve account information - Plugin may be out of date")
+
def login(self, user, data, req):
- self.html = req.load("http://debriditalia.com/login.php",
- get={"u": user, "p": data['password']})
- if 'NO' in self.html:
+ html = req.load("http://debriditalia.com/login.php",
+ get={"u": user, "p": data['password']})
+ if 'NO' in html:
self.wrongPassword()
diff --git a/module/plugins/accounts/DepositfilesCom.py b/module/plugins/accounts/DepositfilesCom.py
index e4ef4a578..80e6c8862 100644
--- a/module/plugins/accounts/DepositfilesCom.py
+++ b/module/plugins/accounts/DepositfilesCom.py
@@ -27,6 +27,7 @@ class DepositfilesCom(Account):
return {"validuntil": validuntil, "trafficleft": -1}
+
def login(self, user, data, req):
src = req.load("https://dfiles.eu/de/login.php", get={"return": "/de/gold/payment.php"},
post={"login": user, "password": data['password']})
diff --git a/module/plugins/accounts/EuroshareEu.py b/module/plugins/accounts/EuroshareEu.py
index 984d429f4..bb2f0c8e2 100644
--- a/module/plugins/accounts/EuroshareEu.py
+++ b/module/plugins/accounts/EuroshareEu.py
@@ -29,6 +29,7 @@ class EuroshareEu(Account):
return {"validuntil": validuntil, "trafficleft": -1, "premium": premium}
+
def login(self, user, data, req):
html = req.load('http://euroshare.eu/customer-zone/login/', post={
diff --git a/module/plugins/accounts/FastixRu.py b/module/plugins/accounts/FastixRu.py
index 10328b840..8ced61f15 100644
--- a/module/plugins/accounts/FastixRu.py
+++ b/module/plugins/accounts/FastixRu.py
@@ -27,6 +27,7 @@ class FastixRu(Account):
account_info = {"validuntil": None, "trafficleft": None, "premium": False}
return account_info
+
def login(self, user, data, req):
page = req.load("http://fastix.ru/api_v2/?sub=get_apikey&email=%s&password=%s" % (user, data['password']))
api = json_loads(page)
diff --git a/module/plugins/accounts/FastshareCz.py b/module/plugins/accounts/FastshareCz.py
index eadb9184c..a199ad36c 100644
--- a/module/plugins/accounts/FastshareCz.py
+++ b/module/plugins/accounts/FastshareCz.py
@@ -32,6 +32,7 @@ class FastshareCz(Account):
return {"validuntil": -1, "trafficleft": trafficleft, "premium": premium}
+
def login(self, user, data, req):
req.load('http://www.fastshare.cz/login') # Do not remove or it will not login
html = req.load('http://www.fastshare.cz/sql.php', post={
diff --git a/module/plugins/accounts/FilecloudIo.py b/module/plugins/accounts/FilecloudIo.py
index 364f349da..439491ea9 100644
--- a/module/plugins/accounts/FilecloudIo.py
+++ b/module/plugins/accounts/FilecloudIo.py
@@ -40,6 +40,7 @@ class FilecloudIo(Account):
else:
return {"premium": False}
+
def login(self, user, data, req):
req.cj.setCookie("secure.filecloud.io", "lang", "en")
html = req.load('https://secure.filecloud.io/user-login.html')
diff --git a/module/plugins/accounts/FilefactoryCom.py b/module/plugins/accounts/FilefactoryCom.py
index b46706b93..899c4a604 100644
--- a/module/plugins/accounts/FilefactoryCom.py
+++ b/module/plugins/accounts/FilefactoryCom.py
@@ -36,6 +36,7 @@ class FilefactoryCom(Account):
return {"premium": premium, "trafficleft": -1, "validuntil": validuntil}
+
def login(self, user, data, req):
req.http.c.setopt(REFERER, "http://www.filefactory.com/member/login.php")
diff --git a/module/plugins/accounts/FilejungleCom.py b/module/plugins/accounts/FilejungleCom.py
index 1301b34f2..9cf380067 100644
--- a/module/plugins/accounts/FilejungleCom.py
+++ b/module/plugins/accounts/FilejungleCom.py
@@ -35,6 +35,7 @@ class FilejungleCom(Account):
return {"premium": premium, "trafficleft": -1, "validuntil": validuntil}
+
def login(self, user, data, req):
html = req.load(self.URL + "login.php", post={
"loginUserName": user,
diff --git a/module/plugins/accounts/FilerNet.py b/module/plugins/accounts/FilerNet.py
index a459f88f0..8bd66221f 100644
--- a/module/plugins/accounts/FilerNet.py
+++ b/module/plugins/accounts/FilerNet.py
@@ -40,6 +40,7 @@ class FilerNet(Account):
self.logError("Unable to retrieve account information - Plugin may be out of date")
return {"premium": False, "validuntil": None, "trafficleft": None}
+
def login(self, user, data, req):
html = req.load("https://filer.net/login")
token = re.search(self.TOKEN_PATTERN, html).group(1)
diff --git a/module/plugins/accounts/FilesMailRu.py b/module/plugins/accounts/FilesMailRu.py
index 93d4ff486..25343670a 100644
--- a/module/plugins/accounts/FilesMailRu.py
+++ b/module/plugins/accounts/FilesMailRu.py
@@ -16,6 +16,7 @@ class FilesMailRu(Account):
def loadAccountInfo(self, user, req):
return {"validuntil": None, "trafficleft": None}
+
def login(self, user, data, req):
user, domain = user.split("@")
diff --git a/module/plugins/accounts/FileserveCom.py b/module/plugins/accounts/FileserveCom.py
index 603ee3991..f82ecfb54 100644
--- a/module/plugins/accounts/FileserveCom.py
+++ b/module/plugins/accounts/FileserveCom.py
@@ -29,6 +29,7 @@ class FileserveCom(Account):
else:
return {"premium": False, "trafficleft": None, "validuntil": None}
+
def login(self, user, data, req):
page = req.load("http://app.fileserve.com/api/login/", post={"username": user, "password": data['password'],
"submit": "Submit+Query"})
diff --git a/module/plugins/accounts/FourSharedCom.py b/module/plugins/accounts/FourSharedCom.py
index 39f6fbe75..21aff591b 100644
--- a/module/plugins/accounts/FourSharedCom.py
+++ b/module/plugins/accounts/FourSharedCom.py
@@ -19,6 +19,7 @@ class FourSharedCom(Account):
# Free mode only for now
return {"premium": False}
+
def login(self, user, data, req):
req.cj.setCookie("4shared.com", "4langcookie", "en")
response = req.load('http://www.4shared.com/web/login',
diff --git a/module/plugins/accounts/FreakshareCom.py b/module/plugins/accounts/FreakshareCom.py
index 86f2b5a3e..2ee7a33ea 100644
--- a/module/plugins/accounts/FreakshareCom.py
+++ b/module/plugins/accounts/FreakshareCom.py
@@ -31,6 +31,7 @@ class FreakshareCom(Account):
return {"validuntil": validuntil, "trafficleft": traffic}
+
def login(self, user, data, req):
page = req.load("http://freakshare.com/login.html", None,
{"submit": "Login", "user": user, "pass": data['password']}, cookies=True)
diff --git a/module/plugins/accounts/FreeWayMe.py b/module/plugins/accounts/FreeWayMe.py
index 333525d82..12c24329c 100644
--- a/module/plugins/accounts/FreeWayMe.py
+++ b/module/plugins/accounts/FreeWayMe.py
@@ -35,6 +35,7 @@ class FreeWayMe(Account):
def getpw(self, user):
return self.accounts[user]['password']
+
def login(self, user, data, req):
status = self.getAccountStatus(user, req)
diff --git a/module/plugins/accounts/FshareVn.py b/module/plugins/accounts/FshareVn.py
index b208743e0..45ee5a749 100644
--- a/module/plugins/accounts/FshareVn.py
+++ b/module/plugins/accounts/FshareVn.py
@@ -44,6 +44,7 @@ class FshareVn(Account):
return {"validuntil": validuntil, "trafficleft": trafficleft, "premium": premium}
+
def login(self, user, data, req):
req.http.c.setopt(REFERER, "https://www.fshare.vn/login.php")
diff --git a/module/plugins/accounts/HellshareCz.py b/module/plugins/accounts/HellshareCz.py
index 53c9906c1..d24a6ae51 100644
--- a/module/plugins/accounts/HellshareCz.py
+++ b/module/plugins/accounts/HellshareCz.py
@@ -50,6 +50,7 @@ class HellshareCz(Account):
return {"validuntil": validuntil, "trafficleft": trafficleft, "premium": premium}
+
def login(self, user, data, req):
html = req.load('http://www.hellshare.com/')
if req.lastEffectiveURL != 'http://www.hellshare.com/':
diff --git a/module/plugins/accounts/LetitbitNet.py b/module/plugins/accounts/LetitbitNet.py
index ca6360068..fba599078 100644
--- a/module/plugins/accounts/LetitbitNet.py
+++ b/module/plugins/accounts/LetitbitNet.py
@@ -28,6 +28,7 @@ class LetitbitNet(Account):
return {"premium": True}
+
def login(self, user, data, req):
# API_KEY is the username and the PREMIUM_KEY is the password
self.logInfo("You must use your API KEY as username and the PREMIUM KEY as password.")
diff --git a/module/plugins/accounts/LinksnappyCom.py b/module/plugins/accounts/LinksnappyCom.py
index e9ca91375..adcae001c 100644
--- a/module/plugins/accounts/LinksnappyCom.py
+++ b/module/plugins/accounts/LinksnappyCom.py
@@ -41,6 +41,7 @@ class LinksnappyCom(Account):
return {"premium": True, "validuntil": validuntil, "trafficleft": trafficleft}
+
def login(self, user, data, req):
r = req.load('http://gen.linksnappy.com/lseAPI.php',
get={'act': 'USERDETAILS', 'username': user, 'password': md5(data['password']).hexdigest()})
diff --git a/module/plugins/accounts/MegaDebridEu.py b/module/plugins/accounts/MegaDebridEu.py
index e92bb4cb3..d88be835b 100644
--- a/module/plugins/accounts/MegaDebridEu.py
+++ b/module/plugins/accounts/MegaDebridEu.py
@@ -30,6 +30,7 @@ class MegaDebridEu(Account):
self.logError(response)
return {"status": False, "premium": False}
+
def login(self, user, data, req):
jsonResponse = req.load(self.API_URL,
get={'action': 'connectUser', 'login': user, 'password': data['password']})
diff --git a/module/plugins/accounts/MegaRapidCz.py b/module/plugins/accounts/MegaRapidCz.py
index 5b7b41e2b..3ef98560a 100644
--- a/module/plugins/accounts/MegaRapidCz.py
+++ b/module/plugins/accounts/MegaRapidCz.py
@@ -40,6 +40,7 @@ class MegaRapidCz(Account):
return {"premium": False, "trafficleft": None, "validuntil": None}
+
def login(self, user, data, req):
htm = req.load("http://megarapid.cz/prihlaseni/", cookies=True)
if "Heslo:" in htm:
diff --git a/module/plugins/accounts/MegasharesCom.py b/module/plugins/accounts/MegasharesCom.py
index f1ef3fdd8..5ac22222c 100644
--- a/module/plugins/accounts/MegasharesCom.py
+++ b/module/plugins/accounts/MegasharesCom.py
@@ -35,6 +35,7 @@ class MegasharesCom(Account):
return {"validuntil": validuntil, "trafficleft": -1, "premium": premium}
+
def login(self, user, data, req):
html = req.load('http://d01.megashares.com/myms_login.php', post={
"httpref": "",
diff --git a/module/plugins/accounts/MultishareCz.py b/module/plugins/accounts/MultishareCz.py
index 8e6b72a97..a9b0a1620 100644
--- a/module/plugins/accounts/MultishareCz.py
+++ b/module/plugins/accounts/MultishareCz.py
@@ -34,6 +34,7 @@ class MultishareCz(Account):
return dict(mms_info, **{"validuntil": -1, "trafficleft": trafficleft})
+
def login(self, user, data, req):
html = req.load('http://www.multishare.cz/html/prihlaseni_process.php', post={
"akce": "Přihlásit",
diff --git a/module/plugins/accounts/MyfastfileCom.py b/module/plugins/accounts/MyfastfileCom.py
index 965b10e78..350974d79 100644
--- a/module/plugins/accounts/MyfastfileCom.py
+++ b/module/plugins/accounts/MyfastfileCom.py
@@ -23,6 +23,7 @@ class MyfastfileCom(Account):
else:
self.logError("Unable to get account information")
+
def login(self, user, data, req):
# Password to use is the API-Password written in http://myfastfile.com/myaccount
html = req.load("http://myfastfile.com/api.php",
diff --git a/module/plugins/accounts/NetloadIn.py b/module/plugins/accounts/NetloadIn.py
index 4bb4c7124..f5bac0368 100755
--- a/module/plugins/accounts/NetloadIn.py
+++ b/module/plugins/accounts/NetloadIn.py
@@ -31,6 +31,7 @@ class NetloadIn(Account):
trafficleft = None
return {"validuntil": validuntil, "trafficleft": trafficleft, "premium": premium}
+
def login(self, user, data, req):
page = req.load("http://netload.in/index.php", None,
{"txtuser": user, "txtpass": data['password'], "txtcheck": "login", "txtlogin": "Login"},
diff --git a/module/plugins/accounts/OneFichierCom.py b/module/plugins/accounts/OneFichierCom.py
index 1e44ae2ca..8e8430f61 100644
--- a/module/plugins/accounts/OneFichierCom.py
+++ b/module/plugins/accounts/OneFichierCom.py
@@ -36,6 +36,7 @@ class OneFichierCom(Account):
return {"premium": premium, "trafficleft": -1, "validuntil": validuntil}
+
def login(self, user, data, req):
req.http.c.setopt(REFERER, "http://1fichier.com/login.pl?lg=en")
diff --git a/module/plugins/accounts/OverLoadMe.py b/module/plugins/accounts/OverLoadMe.py
index 1d0bf3321..c85feec59 100644
--- a/module/plugins/accounts/OverLoadMe.py
+++ b/module/plugins/accounts/OverLoadMe.py
@@ -26,6 +26,7 @@ class OverLoadMe(Account):
account_info = {"validuntil": data['expirationunix'], "trafficleft": -1}
return account_info
+
def login(self, user, data, req):
jsondata = req.load("https://api.over-load.me/account.php",
get={"user": user, "auth": data['password']}).strip()
diff --git a/module/plugins/accounts/PremiumTo.py b/module/plugins/accounts/PremiumTo.py
index 4ab107094..d13d9b866 100644
--- a/module/plugins/accounts/PremiumTo.py
+++ b/module/plugins/accounts/PremiumTo.py
@@ -22,6 +22,7 @@ class PremiumTo(Account):
return {"trafficleft": int(traffic) / 1024, "validuntil": -1}
+
def login(self, user, data, req):
self.username = user
self.password = data['password']
diff --git a/module/plugins/accounts/PremiumizeMe.py b/module/plugins/accounts/PremiumizeMe.py
index 1f8790495..a234a8d93 100644
--- a/module/plugins/accounts/PremiumizeMe.py
+++ b/module/plugins/accounts/PremiumizeMe.py
@@ -29,6 +29,7 @@ class PremiumizeMe(Account):
return account_info
+
def login(self, user, data, req):
# Get user data from premiumize.me
status = self.getAccountStatus(user, req)
diff --git a/module/plugins/accounts/QuickshareCz.py b/module/plugins/accounts/QuickshareCz.py
index 0681bab5b..fa0acd06d 100644
--- a/module/plugins/accounts/QuickshareCz.py
+++ b/module/plugins/accounts/QuickshareCz.py
@@ -28,6 +28,7 @@ class QuickshareCz(Account):
return {"validuntil": -1, "trafficleft": trafficleft, "premium": premium}
+
def login(self, user, data, req):
html = req.load('http://www.quickshare.cz/html/prihlaseni_process.php', post={
"akce": u'Přihlásit',
diff --git a/module/plugins/accounts/RPNetBiz.py b/module/plugins/accounts/RPNetBiz.py
index 3dcab7d54..e4b873824 100644
--- a/module/plugins/accounts/RPNetBiz.py
+++ b/module/plugins/accounts/RPNetBiz.py
@@ -31,6 +31,7 @@ class RPNetBiz(Account):
return account_info
+
def login(self, user, data, req):
# Get account information from rpnet.biz
response = self.getAccountStatus(user, req)
diff --git a/module/plugins/accounts/RapidgatorNet.py b/module/plugins/accounts/RapidgatorNet.py
index ee44d4879..981f2f90f 100644
--- a/module/plugins/accounts/RapidgatorNet.py
+++ b/module/plugins/accounts/RapidgatorNet.py
@@ -40,6 +40,7 @@ class RapidgatorNet(Account):
return {"validuntil": None, "trafficleft": None, "premium": False}
+
def login(self, user, data, req):
try:
json = req.load('%s/login' % self.API_URL, post={"username": user, "password": data['password']})
diff --git a/module/plugins/accounts/RapidshareCom.py b/module/plugins/accounts/RapidshareCom.py
index c52706fe2..d6f4efe8d 100644
--- a/module/plugins/accounts/RapidshareCom.py
+++ b/module/plugins/accounts/RapidshareCom.py
@@ -36,6 +36,7 @@ class RapidshareCom(Account):
return tmp
+
def login(self, user, data, req):
api_url_base = "http://api.rapidshare.com/cgi-bin/rsapi.cgi"
api_param_prem = {"sub": "getaccountdetails", "type": "prem", "login": user,
diff --git a/module/plugins/accounts/RealdebridCom.py b/module/plugins/accounts/RealdebridCom.py
index b7212c8d3..e85a28f02 100644
--- a/module/plugins/accounts/RealdebridCom.py
+++ b/module/plugins/accounts/RealdebridCom.py
@@ -25,6 +25,7 @@ class RealdebridCom(Account):
return account_info
+
def login(self, user, data, req):
self.pin_code = False
page = req.load("https://real-debrid.com/ajax/login.php", get={"user": user, "pass": data['password']})
diff --git a/module/plugins/accounts/RehostTo.py b/module/plugins/accounts/RehostTo.py
index b71347a15..e9d9bd243 100644
--- a/module/plugins/accounts/RehostTo.py
+++ b/module/plugins/accounts/RehostTo.py
@@ -30,6 +30,7 @@ class RehostTo(Account):
return account_info
+
def login(self, user, data, req):
page = req.load("http://rehost.to/api.php?cmd=login&user=%s&pass=%s" % (user, data['password']))
diff --git a/module/plugins/accounts/ShareonlineBiz.py b/module/plugins/accounts/ShareonlineBiz.py
index d96dd2fe6..76c564032 100644
--- a/module/plugins/accounts/ShareonlineBiz.py
+++ b/module/plugins/accounts/ShareonlineBiz.py
@@ -37,6 +37,7 @@ class ShareonlineBiz(Account):
"trafficleft": -1,
"premium": True if ("dl" in info or "a" in info) and (info['group'] != "Sammler") else False}
+
def login(self, user, data, req):
src = self.getUserAPI(user, req)
if "EXCEPTION" in src:
diff --git a/module/plugins/accounts/SimplyPremiumCom.py b/module/plugins/accounts/SimplyPremiumCom.py
index 8f65fa677..442aaa9f3 100644
--- a/module/plugins/accounts/SimplyPremiumCom.py
+++ b/module/plugins/accounts/SimplyPremiumCom.py
@@ -31,6 +31,7 @@ class SimplyPremiumCom(Account):
#return {"premium": True, "validuntil": validuntil, "trafficleft": trafficleft}
return {"premium": True, "validuntil": validuntil}
+
def login(self, user, data, req):
req.cj.setCookie("simply-premium.com", "lang", "EN")
diff --git a/module/plugins/accounts/SimplydebridCom.py b/module/plugins/accounts/SimplydebridCom.py
index c77df7a52..b986985e1 100644
--- a/module/plugins/accounts/SimplydebridCom.py
+++ b/module/plugins/accounts/SimplydebridCom.py
@@ -24,6 +24,7 @@ class SimplydebridCom(Account):
else:
return {"trafficleft": -1, "validuntil": mktime(strptime(str(data[2]), "%d/%m/%Y"))}
+
def login(self, user, data, req):
self.loginname = user
self.password = data['password']
diff --git a/module/plugins/accounts/StahnuTo.py b/module/plugins/accounts/StahnuTo.py
index 1afb37791..7b32ae842 100644
--- a/module/plugins/accounts/StahnuTo.py
+++ b/module/plugins/accounts/StahnuTo.py
@@ -24,6 +24,7 @@ class StahnuTo(Account):
return {"premium": trafficleft > (512 * 1024), "trafficleft": trafficleft, "validuntil": -1}
+
def login(self, user, data, req):
html = req.load("http://www.stahnu.to/login.php", post={
"username": user,
diff --git a/module/plugins/accounts/TurbobitNet.py b/module/plugins/accounts/TurbobitNet.py
index 065668815..7dfea7c3a 100644
--- a/module/plugins/accounts/TurbobitNet.py
+++ b/module/plugins/accounts/TurbobitNet.py
@@ -29,6 +29,7 @@ class TurbobitNet(Account):
return {"premium": premium, "trafficleft": -1, "validuntil": validuntil}
+
def login(self, user, data, req):
req.cj.setCookie("turbobit.net", "user_lang", "en")
diff --git a/module/plugins/accounts/UlozTo.py b/module/plugins/accounts/UlozTo.py
index 2298e252b..dc51b7a80 100644
--- a/module/plugins/accounts/UlozTo.py
+++ b/module/plugins/accounts/UlozTo.py
@@ -31,6 +31,7 @@ class UlozTo(Account):
return {"validuntil": -1, "trafficleft": trafficleft}
+
def login(self, user, data, req):
login_page = req.load('http://www.ulozto.net/?do=web-login', decode=True)
action = re.findall('<form action="(.+?)"', login_page)[1].replace('&amp;', '&')
diff --git a/module/plugins/accounts/UnrestrictLi.py b/module/plugins/accounts/UnrestrictLi.py
index e3da5e913..5a02e04a2 100644
--- a/module/plugins/accounts/UnrestrictLi.py
+++ b/module/plugins/accounts/UnrestrictLi.py
@@ -27,6 +27,7 @@ class UnrestrictLi(Account):
return {"premium": True, "validuntil": validuntil, "trafficleft": trafficleft}
+
def login(self, user, data, req):
req.cj.setCookie("unrestrict.li", "lang", "EN")
html = req.load("https://unrestrict.li/sign_in")
diff --git a/module/plugins/accounts/UploadedTo.py b/module/plugins/accounts/UploadedTo.py
index be4f9f47c..437730a3f 100644
--- a/module/plugins/accounts/UploadedTo.py
+++ b/module/plugins/accounts/UploadedTo.py
@@ -42,6 +42,7 @@ class UploadedTo(Account):
else:
return {"premium": False, "validuntil": -1}
+
def login(self, user, data, req):
req.load("http://uploaded.net/language/en")
diff --git a/module/plugins/accounts/UploadheroCom.py b/module/plugins/accounts/UploadheroCom.py
index ec34e425e..e66f7b9c6 100644
--- a/module/plugins/accounts/UploadheroCom.py
+++ b/module/plugins/accounts/UploadheroCom.py
@@ -32,6 +32,7 @@ class UploadheroCom(Account):
return account_info
+
def login(self, user, data, req):
page = req.load("http://uploadhero.co/lib/connexion.php",
post={"pseudo_login": user, "password_login": data['password']})
diff --git a/module/plugins/accounts/UploadingCom.py b/module/plugins/accounts/UploadingCom.py
index 544391ea3..5ade435d4 100644
--- a/module/plugins/accounts/UploadingCom.py
+++ b/module/plugins/accounts/UploadingCom.py
@@ -30,6 +30,7 @@ class UploadingCom(Account):
return {"validuntil": validuntil, "trafficleft": -1, "premium": True}
+
def login(self, user, data, req):
req.cj.setCookie("uploading.com", "lang", "1")
req.cj.setCookie("uploading.com", "language", "1")
diff --git a/module/plugins/accounts/YibaishiwuCom.py b/module/plugins/accounts/YibaishiwuCom.py
index f7f5d3e7a..81880f575 100644
--- a/module/plugins/accounts/YibaishiwuCom.py
+++ b/module/plugins/accounts/YibaishiwuCom.py
@@ -27,6 +27,7 @@ class YibaishiwuCom(Account):
validuntil = trafficleft = (-1 if m else 0)
return dict({"validuntil": validuntil, "trafficleft": trafficleft, "premium": premium})
+
def login(self, user, data, req):
html = req.load('http://passport.115.com/?ac=login', post={
"back": "http://www.115.com/",
diff --git a/module/plugins/accounts/ZeveraCom.py b/module/plugins/accounts/ZeveraCom.py
index 72c6c7348..7e4fb0ab8 100644
--- a/module/plugins/accounts/ZeveraCom.py
+++ b/module/plugins/accounts/ZeveraCom.py
@@ -27,6 +27,7 @@ class ZeveraCom(Account):
}
return account_info
+
def login(self, user, data, req):
self.loginname = user
self.password = data['password']