summaryrefslogtreecommitdiffstats
path: root/module/plugins/accounts
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-11-15 18:04:47 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-11-21 07:20:21 +0100
commite8246525f3106c152d6d1436c6a3111e0334520f (patch)
tree3797fb96c27d44eafb5ee691c15d73c8b20ab7bc /module/plugins/accounts
parent[SimpleHoster] CONTENT_DISPOSITION feature (diff)
downloadpyload-e8246525f3106c152d6d1436c6a3111e0334520f.tar.xz
Fix cookie domain
Diffstat (limited to 'module/plugins/accounts')
-rw-r--r--module/plugins/accounts/FastshareCz.py2
-rw-r--r--module/plugins/accounts/FilecloudIo.py2
-rw-r--r--module/plugins/accounts/FourSharedCom.py2
-rw-r--r--module/plugins/accounts/Keep2shareCc.py2
-rw-r--r--module/plugins/accounts/RapidshareCom.py2
-rw-r--r--module/plugins/accounts/ShareonlineBiz.py4
-rw-r--r--module/plugins/accounts/SimplyPremiumCom.py2
-rw-r--r--module/plugins/accounts/TurbobitNet.py2
-rw-r--r--module/plugins/accounts/UlozTo.py2
-rw-r--r--module/plugins/accounts/UnrestrictLi.py2
-rw-r--r--module/plugins/accounts/UploadedTo.py2
-rw-r--r--module/plugins/accounts/UploadingCom.py8
12 files changed, 16 insertions, 16 deletions
diff --git a/module/plugins/accounts/FastshareCz.py b/module/plugins/accounts/FastshareCz.py
index c6dc7070b..d6e94f2e3 100644
--- a/module/plugins/accounts/FastshareCz.py
+++ b/module/plugins/accounts/FastshareCz.py
@@ -40,7 +40,7 @@ class FastshareCz(Account):
def login(self, user, data, req):
- req.cj.setCookie(".fastshare.cz", "lang", "en")
+ req.cj.setCookie("fastshare.cz", "lang", "en")
req.load('http://www.fastshare.cz/login') # Do not remove or it will not login
diff --git a/module/plugins/accounts/FilecloudIo.py b/module/plugins/accounts/FilecloudIo.py
index f62d95301..c001d4513 100644
--- a/module/plugins/accounts/FilecloudIo.py
+++ b/module/plugins/accounts/FilecloudIo.py
@@ -42,7 +42,7 @@ class FilecloudIo(Account):
def login(self, user, data, req):
- req.cj.setCookie(".secure.filecloud.io", "lang", "en")
+ req.cj.setCookie("secure.filecloud.io", "lang", "en")
html = req.load('https://secure.filecloud.io/user-login.html')
if not hasattr(self, "form_data"):
diff --git a/module/plugins/accounts/FourSharedCom.py b/module/plugins/accounts/FourSharedCom.py
index 565a00cf2..ec19f83f5 100644
--- a/module/plugins/accounts/FourSharedCom.py
+++ b/module/plugins/accounts/FourSharedCom.py
@@ -21,7 +21,7 @@ class FourSharedCom(Account):
def login(self, user, data, req):
- req.cj.setCookie(".4shared.com", "4langcookie", "en")
+ req.cj.setCookie("4shared.com", "4langcookie", "en")
res = req.load('http://www.4shared.com/web/login',
post={'login': user,
'password': data['password'],
diff --git a/module/plugins/accounts/Keep2shareCc.py b/module/plugins/accounts/Keep2shareCc.py
index de9b9b5d8..ffae02ae4 100644
--- a/module/plugins/accounts/Keep2shareCc.py
+++ b/module/plugins/accounts/Keep2shareCc.py
@@ -60,7 +60,7 @@ class Keep2shareCc(Account):
def login(self, user, data, req):
- req.cj.setCookie(".keep2share.cc", "lang", "en")
+ req.cj.setCookie("keep2share.cc", "lang", "en")
html = req.load("http://keep2share.cc/login.html",
post={'LoginForm[username]': user, 'LoginForm[password]': data['password']})
diff --git a/module/plugins/accounts/RapidshareCom.py b/module/plugins/accounts/RapidshareCom.py
index 5c2ce66f5..9e5c70a69 100644
--- a/module/plugins/accounts/RapidshareCom.py
+++ b/module/plugins/accounts/RapidshareCom.py
@@ -52,4 +52,4 @@ class RapidshareCom(Account):
k, v = t.split("=")
info[k] = v
cj = self.getAccountCookies(user)
- cj.setCookie(".rapidshare.com", "enc", info['cookie'])
+ cj.setCookie("rapidshare.com", "enc", info['cookie'])
diff --git a/module/plugins/accounts/ShareonlineBiz.py b/module/plugins/accounts/ShareonlineBiz.py
index 331bb9f74..976d2ff14 100644
--- a/module/plugins/accounts/ShareonlineBiz.py
+++ b/module/plugins/accounts/ShareonlineBiz.py
@@ -30,9 +30,9 @@ class ShareonlineBiz(Account):
self.logDebug(info)
if "dl" in info and info['dl'].lower() != "not_available":
- req.cj.setCookie(".share-online.biz", "dl", info['dl'])
+ req.cj.setCookie("share-online.biz", "dl", info['dl'])
if "a" in info and info['a'].lower() != "not_available":
- req.cj.setCookie(".share-online.biz", "a", info['a'])
+ req.cj.setCookie("share-online.biz", "a", info['a'])
return {"validuntil": int(info['expire_date']) if "expire_date" in info else -1,
"trafficleft": -1,
diff --git a/module/plugins/accounts/SimplyPremiumCom.py b/module/plugins/accounts/SimplyPremiumCom.py
index ab9474955..979ce73aa 100644
--- a/module/plugins/accounts/SimplyPremiumCom.py
+++ b/module/plugins/accounts/SimplyPremiumCom.py
@@ -33,7 +33,7 @@ class SimplyPremiumCom(Account):
def login(self, user, data, req):
- req.cj.setCookie(".simply-premium.com", "lang", "EN")
+ req.cj.setCookie("simply-premium.com", "lang", "EN")
if data['password'] == '' or data['password'] == '0':
post_data = {"key": user}
diff --git a/module/plugins/accounts/TurbobitNet.py b/module/plugins/accounts/TurbobitNet.py
index b26cad1af..f87d234a7 100644
--- a/module/plugins/accounts/TurbobitNet.py
+++ b/module/plugins/accounts/TurbobitNet.py
@@ -31,7 +31,7 @@ class TurbobitNet(Account):
def login(self, user, data, req):
- req.cj.setCookie(".turbobit.net", "user_lang", "en")
+ req.cj.setCookie("turbobit.net", "user_lang", "en")
html = req.load("http://turbobit.net/user/login", post={
"user[login]": user,
diff --git a/module/plugins/accounts/UlozTo.py b/module/plugins/accounts/UlozTo.py
index ea2562280..63adb6aa8 100644
--- a/module/plugins/accounts/UlozTo.py
+++ b/module/plugins/accounts/UlozTo.py
@@ -26,7 +26,7 @@ class UlozTo(Account):
html = req.load("http://www.ulozto.net/", decode=True)
- req.cj.setCookie(".ulozto.net", "ULOSESSID", self.phpsessid)
+ req.cj.setCookie("ulozto.net", "ULOSESSID", self.phpsessid)
m = re.search(self.TRAFFIC_LEFT_PATTERN, html)
trafficleft = int(float(m.group(1).replace(' ', '').replace(',', '.')) * 1000 * 1.048) if m else 0
diff --git a/module/plugins/accounts/UnrestrictLi.py b/module/plugins/accounts/UnrestrictLi.py
index 60e501d2e..e43d6bbd7 100644
--- a/module/plugins/accounts/UnrestrictLi.py
+++ b/module/plugins/accounts/UnrestrictLi.py
@@ -29,7 +29,7 @@ class UnrestrictLi(Account):
def login(self, user, data, req):
- req.cj.setCookie(".unrestrict.li", "lang", "EN")
+ req.cj.setCookie("unrestrict.li", "lang", "EN")
html = req.load("https://unrestrict.li/sign_in")
if 'solvemedia' in html:
diff --git a/module/plugins/accounts/UploadedTo.py b/module/plugins/accounts/UploadedTo.py
index 2d9d268c9..6cb09e44b 100644
--- a/module/plugins/accounts/UploadedTo.py
+++ b/module/plugins/accounts/UploadedTo.py
@@ -51,7 +51,7 @@ class UploadedTo(Account):
def login(self, user, data, req):
- req.cj.setCookie(".uploaded.net", "lang", "en")
+ req.cj.setCookie("uploaded.net", "lang", "en")
page = req.load("http://uploaded.net/io/login",
post={'id': user, 'pw': data['password'], '_': ""})
diff --git a/module/plugins/accounts/UploadingCom.py b/module/plugins/accounts/UploadingCom.py
index 8747af133..c70d2ec11 100644
--- a/module/plugins/accounts/UploadingCom.py
+++ b/module/plugins/accounts/UploadingCom.py
@@ -53,10 +53,10 @@ class UploadingCom(Account):
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([("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() * 1000),