summaryrefslogtreecommitdiffstats
path: root/module/plugins
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
parent[SimpleHoster] CONTENT_DISPOSITION feature (diff)
downloadpyload-e8246525f3106c152d6d1436c6a3111e0334520f.tar.xz
Fix cookie domain
Diffstat (limited to 'module/plugins')
-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
-rw-r--r--module/plugins/crypter/FilefactoryComFolder.py2
-rw-r--r--module/plugins/crypter/LinkSaveIn.py2
-rw-r--r--module/plugins/hoster/BitshareCom.py2
-rw-r--r--module/plugins/hoster/DepositfilesCom.py2
-rw-r--r--module/plugins/hoster/DropboxCom.py2
-rw-r--r--module/plugins/hoster/FastshareCz.py2
-rw-r--r--module/plugins/hoster/FilefactoryCom.py2
-rw-r--r--module/plugins/hoster/GigapetaCom.py2
-rw-r--r--module/plugins/hoster/RapidgatorNet.py2
-rw-r--r--module/plugins/hoster/TurbobitNet.py2
-rw-r--r--module/plugins/hoster/UploadheroCom.py2
-rw-r--r--module/plugins/hoster/UploadingCom.py2
-rw-r--r--module/plugins/hoster/VeohCom.py2
-rw-r--r--module/plugins/hoster/VimeoCom.py2
-rw-r--r--module/plugins/hoster/WrzucTo.py2
-rw-r--r--module/plugins/hoster/ZippyshareCom.py2
28 files changed, 32 insertions, 32 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),
diff --git a/module/plugins/crypter/FilefactoryComFolder.py b/module/plugins/crypter/FilefactoryComFolder.py
index 92e9620f6..52c39c386 100644
--- a/module/plugins/crypter/FilefactoryComFolder.py
+++ b/module/plugins/crypter/FilefactoryComFolder.py
@@ -21,7 +21,7 @@ class FilefactoryComFolder(SimpleCrypter):
NAME_PATTERN = r'<h1>Files in <span>(?P<N>.+)</span></h1>'
PAGES_PATTERN = r'data-paginator-totalPages="(\d+)"'
- COOKIES = [(".filefactory.com", "locale", "en_US.utf8")]
+ COOKIES = [("filefactory.com", "locale", "en_US.utf8")]
def loadPage(self, page_n):
diff --git a/module/plugins/crypter/LinkSaveIn.py b/module/plugins/crypter/LinkSaveIn.py
index 7015f2ed3..46babd156 100644
--- a/module/plugins/crypter/LinkSaveIn.py
+++ b/module/plugins/crypter/LinkSaveIn.py
@@ -27,7 +27,7 @@ class LinkSaveIn(SimpleCrypter):
__authors__ = [("fragonib", "fragonib[AT]yahoo[DOT]es")]
- COOKIES = [(".linksave.in", "Linksave_Language", "english")]
+ COOKIES = [("linksave.in", "Linksave_Language", "english")]
# Constants
_JK_KEY_ = "jk"
diff --git a/module/plugins/hoster/BitshareCom.py b/module/plugins/hoster/BitshareCom.py
index 35aff7c1e..da393f8fc 100644
--- a/module/plugins/hoster/BitshareCom.py
+++ b/module/plugins/hoster/BitshareCom.py
@@ -24,7 +24,7 @@ class BitshareCom(SimpleHoster):
INFO_PATTERN = r'Downloading (?P<N>.+) - (?P<S>[\d.,]+) (?P<U>[\w^_]+)</h1>'
OFFLINE_PATTERN = r'(>We are sorry, but the requested file was not found in our database|>Error - File not available<|The file was deleted either by the uploader, inactivity or due to copyright claim)'
- COOKIES = [(".bitshare.com", "language_selection", "EN")]
+ COOKIES = [("bitshare.com", "language_selection", "EN")]
AJAXID_PATTERN = r'var ajaxdl = "(.*?)";'
TRAFFIC_USED_UP = r'Your Traffic is used up for today. Upgrade to premium to continue!'
diff --git a/module/plugins/hoster/DepositfilesCom.py b/module/plugins/hoster/DepositfilesCom.py
index 2f6c30158..d414e7021 100644
--- a/module/plugins/hoster/DepositfilesCom.py
+++ b/module/plugins/hoster/DepositfilesCom.py
@@ -30,7 +30,7 @@ class DepositfilesCom(SimpleHoster):
(r'.*<b title="(?P<N>[^"]+).*', "\g<N>")]
URL_REPLACEMENTS = [(__pattern__, "https://dfiles.eu/files/\g<ID>")]
- COOKIES = [(".dfiles.eu", "lang_current", "en")]
+ COOKIES = [("dfiles.eu", "lang_current", "en")]
FREE_LINK_PATTERN = r'<form id="downloader_file_form" action="(http://.+?\.(dfiles\.eu|depositfiles\.com)/.+?)" method="post"'
PREMIUM_LINK_PATTERN = r'class="repeat"><a href="(.+?)"'
diff --git a/module/plugins/hoster/DropboxCom.py b/module/plugins/hoster/DropboxCom.py
index cb15aaabd..658974d13 100644
--- a/module/plugins/hoster/DropboxCom.py
+++ b/module/plugins/hoster/DropboxCom.py
@@ -22,7 +22,7 @@ class DropboxCom(SimpleHoster):
OFFLINE_PATTERN = r'<title>Dropbox - (404|Shared link error)<'
- COOKIES = [(".dropbox.com", "lang", "en")]
+ COOKIES = [("dropbox.com", "lang", "en")]
def setup(self):
diff --git a/module/plugins/hoster/FastshareCz.py b/module/plugins/hoster/FastshareCz.py
index df9d6fbd0..1467a0909 100644
--- a/module/plugins/hoster/FastshareCz.py
+++ b/module/plugins/hoster/FastshareCz.py
@@ -29,7 +29,7 @@ class FastshareCz(SimpleHoster):
URL_REPLACEMENTS = [("#.*", "")]
- COOKIES = [(".fastshare.cz", "lang", "en")]
+ COOKIES = [("fastshare.cz", "lang", "en")]
FREE_URL_PATTERN = r'action=(/free/.*?)>\s*<img src="([^"]*)"><br'
PREMIUM_URL_PATTERN = r'(http://data\d+\.fastshare\.cz/download\.php\?id=\d+&)'
diff --git a/module/plugins/hoster/FilefactoryCom.py b/module/plugins/hoster/FilefactoryCom.py
index 7691a1d00..349875f75 100644
--- a/module/plugins/hoster/FilefactoryCom.py
+++ b/module/plugins/hoster/FilefactoryCom.py
@@ -39,7 +39,7 @@ class FilefactoryCom(SimpleHoster):
WAIT_PATTERN = r'<div id="countdown_clock" data-delay="(\d+)">'
PREMIUM_ONLY_PATTERN = r'>Premium Account Required'
- COOKIES = [(".filefactory.com", "locale", "en_US.utf8")]
+ COOKIES = [("filefactory.com", "locale", "en_US.utf8")]
def handleFree(self):
diff --git a/module/plugins/hoster/GigapetaCom.py b/module/plugins/hoster/GigapetaCom.py
index 111493338..c015b8ac3 100644
--- a/module/plugins/hoster/GigapetaCom.py
+++ b/module/plugins/hoster/GigapetaCom.py
@@ -24,7 +24,7 @@ class GigapetaCom(SimpleHoster):
SIZE_PATTERN = r'<th>\s*Size\s*</th>\s*<td>\s*(?P<S>.*?)\s*</td>'
OFFLINE_PATTERN = r'<div id="page_error">'
- COOKIES = [(".gigapeta.com", "lang", "us")]
+ COOKIES = [("gigapeta.com", "lang", "us")]
def handleFree(self):
diff --git a/module/plugins/hoster/RapidgatorNet.py b/module/plugins/hoster/RapidgatorNet.py
index 48f16172d..6f3f7950a 100644
--- a/module/plugins/hoster/RapidgatorNet.py
+++ b/module/plugins/hoster/RapidgatorNet.py
@@ -28,7 +28,7 @@ class RapidgatorNet(SimpleHoster):
API_URL = "http://rapidgator.net/api/file"
- COOKIES = [(".rapidgator.net", "lang", "en")]
+ COOKIES = [("rapidgator.net", "lang", "en")]
NAME_PATTERN = r'<title>Download file (?P<N>.*)</title>'
SIZE_PATTERN = r'File size:\s*<strong>(?P<S>[\d.,]+) (?P<U>[\w^_]+)</strong>'
diff --git a/module/plugins/hoster/TurbobitNet.py b/module/plugins/hoster/TurbobitNet.py
index 6aa7bdd4a..19ae766cb 100644
--- a/module/plugins/hoster/TurbobitNet.py
+++ b/module/plugins/hoster/TurbobitNet.py
@@ -29,7 +29,7 @@ class TurbobitNet(SimpleHoster):
URL_REPLACEMENTS = [(__pattern__, "http://turbobit.net/\g<ID>.html")]
- COOKIES = [(".turbobit.net", "user_lang", "en")]
+ COOKIES = [("turbobit.net", "user_lang", "en")]
NAME_PATTERN = r'id="file-title">(?P<N>.+?)<'
SIZE_PATTERN = r'class="file-size">(?P<S>[\d.,]+) (?P<U>[\w^_]+)'
diff --git a/module/plugins/hoster/UploadheroCom.py b/module/plugins/hoster/UploadheroCom.py
index 617573d4c..92066abb5 100644
--- a/module/plugins/hoster/UploadheroCom.py
+++ b/module/plugins/hoster/UploadheroCom.py
@@ -25,7 +25,7 @@ class UploadheroCom(SimpleHoster):
SIZE_PATTERN = r'Taille du fichier : </span><strong>(?P<S>.*?)</strong>'
OFFLINE_PATTERN = r'<p class="titre_dl_2">|<div class="raison"><strong>Le lien du fichier ci-dessus n\'existe plus.'
- COOKIES = [(".uploadhero.co", "lang", "en")]
+ COOKIES = [("uploadhero.co", "lang", "en")]
IP_BLOCKED_PATTERN = r'href="(/lightbox_block_download\.php\?min=.*?)"'
IP_WAIT_PATTERN = r'<span id="minutes">(\d+)</span>.*\s*<span id="seconds">(\d+)</span>'
diff --git a/module/plugins/hoster/UploadingCom.py b/module/plugins/hoster/UploadingCom.py
index 5510326d1..2b11e3bf4 100644
--- a/module/plugins/hoster/UploadingCom.py
+++ b/module/plugins/hoster/UploadingCom.py
@@ -26,7 +26,7 @@ class UploadingCom(SimpleHoster):
SIZE_PATTERN = r'size tip_container">(?P<S>[\d.,]+) (?P<U>[\w^_]+)<'
OFFLINE_PATTERN = r'(Page|file) not found'
- COOKIES = [(".uploading.com", "lang", "1"),
+ COOKIES = [("uploading.com", "lang", "1"),
(".uploading.com", "language", "1"),
(".uploading.com", "setlang", "en"),
(".uploading.com", "_lang", "en")]
diff --git a/module/plugins/hoster/VeohCom.py b/module/plugins/hoster/VeohCom.py
index 4e91f62bd..9a8fd830f 100644
--- a/module/plugins/hoster/VeohCom.py
+++ b/module/plugins/hoster/VeohCom.py
@@ -23,7 +23,7 @@ class VeohCom(SimpleHoster):
URL_REPLACEMENTS = [(__pattern__, r'http://www.veoh.com/watch/\g<ID>')]
- COOKIES = [(".veoh.com", "lassieLocale", "en")]
+ COOKIES = [("veoh.com", "lassieLocale", "en")]
def setup(self):
diff --git a/module/plugins/hoster/VimeoCom.py b/module/plugins/hoster/VimeoCom.py
index 1d016961f..3242185f6 100644
--- a/module/plugins/hoster/VimeoCom.py
+++ b/module/plugins/hoster/VimeoCom.py
@@ -25,7 +25,7 @@ class VimeoCom(SimpleHoster):
URL_REPLACEMENTS = [(__pattern__, r'https://www.vimeo.com/\g<ID>')]
- COOKIES = [(".vimeo.com", "language", "en")]
+ COOKIES = [("vimeo.com", "language", "en")]
def setup(self):
diff --git a/module/plugins/hoster/WrzucTo.py b/module/plugins/hoster/WrzucTo.py
index 21ac7263d..8e9653307 100644
--- a/module/plugins/hoster/WrzucTo.py
+++ b/module/plugins/hoster/WrzucTo.py
@@ -22,7 +22,7 @@ class WrzucTo(SimpleHoster):
NAME_PATTERN = r'id="file_info">\s*<strong>(?P<N>.*?)</strong>'
SIZE_PATTERN = r'class="info">\s*<tr>\s*<td>(?P<S>.*?)</td>'
- COOKIES = [(".wrzuc.to", "language", "en")]
+ COOKIES = [("wrzuc.to", "language", "en")]
def setup(self):
diff --git a/module/plugins/hoster/ZippyshareCom.py b/module/plugins/hoster/ZippyshareCom.py
index 72bdf3171..8bf5aa942 100644
--- a/module/plugins/hoster/ZippyshareCom.py
+++ b/module/plugins/hoster/ZippyshareCom.py
@@ -26,7 +26,7 @@ class ZippyshareCom(SimpleHoster):
OFFLINE_PATTERN = r'>File does not exist on this server<'
- COOKIES = [(".zippyshare.com", "ziplocale", "en")]
+ COOKIES = [("zippyshare.com", "ziplocale", "en")]
def setup(self):