diff options
author | Walter Purcaro <vuolter@gmail.com> | 2014-09-28 14:57:02 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2014-09-28 14:57:02 +0200 |
commit | 8add4efc7dc3eeaa873030930e5bd31d6bdf8126 (patch) | |
tree | a0b9954ffd279fbee68e7d81e9e63ee616b6a8c0 /module/plugins/internal | |
parent | [UptoboxCom] MultiDL support (diff) | |
download | pyload-8add4efc7dc3eeaa873030930e5bd31d6bdf8126.tar.xz |
[XFileSharingPro] COOKIES preset to english + improved setup routine
Diffstat (limited to 'module/plugins/internal')
-rw-r--r-- | module/plugins/internal/SimpleCrypter.py | 2 | ||||
-rw-r--r-- | module/plugins/internal/SimpleHoster.py | 9 |
2 files changed, 2 insertions, 9 deletions
diff --git a/module/plugins/internal/SimpleCrypter.py b/module/plugins/internal/SimpleCrypter.py index a4134dcc0..3c783bcab 100644 --- a/module/plugins/internal/SimpleCrypter.py +++ b/module/plugins/internal/SimpleCrypter.py @@ -72,7 +72,7 @@ class SimpleCrypter(Crypter): pyfile.url = replace_patterns(pyfile.url, self.URL_REPLACEMENTS) - self.html = self.load(pyfile.url, decode=not self.TEXT_ENCODING, cookies=self.COOKIES) + self.html = self.load(pyfile.url, decode=not self.TEXT_ENCODING) self.checkOnline() diff --git a/module/plugins/internal/SimpleHoster.py b/module/plugins/internal/SimpleHoster.py index c18bfff15..ecbeec979 100644 --- a/module/plugins/internal/SimpleHoster.py +++ b/module/plugins/internal/SimpleHoster.py @@ -217,17 +217,10 @@ class SimpleHoster(Hoster): self.fail("This link require a premium account") else: # This line is required due to the getURL workaround. Can be removed in 0.4.10 - self.html = self.load(pyfile.url, decode=not self.TEXT_ENCODING, cookies=self.COOKIES) + self.html = self.load(pyfile.url, decode=not self.TEXT_ENCODING) self.handleFree() - def load(self, url, get={}, post={}, ref=True, cookies=True, just_header=False, decode=False): - if type(url) == unicode: - url = url.encode('utf8') - return Hoster.load(self, url=url, get=get, post=post, ref=ref, cookies=cookies, - just_header=just_header, decode=decode) - - def getFileInfo(self): self.logDebug("URL", self.pyfile.url) |