summaryrefslogtreecommitdiffstats
path: root/module/plugins/internal/SimpleCrypter.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-09-26 16:59:26 +0200
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-09-26 16:59:26 +0200
commit4709a41c176dd2947709b7f35ccc84213d574624 (patch)
tree937addae8d579aafae2c1f66b75536615dfe5b5c /module/plugins/internal/SimpleCrypter.py
parentFix cookie deletion + Account support for SimpleCrypter (diff)
downloadpyload-4709a41c176dd2947709b7f35ccc84213d574624.tar.xz
Rename SH flags
Diffstat (limited to 'module/plugins/internal/SimpleCrypter.py')
-rw-r--r--module/plugins/internal/SimpleCrypter.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/module/plugins/internal/SimpleCrypter.py b/module/plugins/internal/SimpleCrypter.py
index bacfce1dd..184ba66c9 100644
--- a/module/plugins/internal/SimpleCrypter.py
+++ b/module/plugins/internal/SimpleCrypter.py
@@ -51,16 +51,16 @@ class SimpleCrypter(Crypter):
URL_REPLACEMENTS = []
- SH_BROKEN_ENCODING = False #: Set to True or encoding name if encoding in http header is not correct
- SH_COOKIES = True #: or False or list of tuples [(domain, name, value)]
+ TEXT_ENCODING = False #: Set to True or encoding name if encoding in http header is not correct
+ COOKIES = True #: or False or list of tuples [(domain, name, value)]
LOGIN_ACCOUNT = False
LOGIN_PREMIUM = False
def setup(self):
- if isinstance(self.SH_COOKIES, list):
- set_cookies(self.req.cj, self.SH_COOKIES)
+ if isinstance(self.COOKIES, list):
+ set_cookies(self.req.cj, self.COOKIES)
def decrypt(self, pyfile):
@@ -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.SH_BROKEN_ENCODING, cookies=self.SH_COOKIES)
+ self.html = self.load(pyfile.url, decode=not self.TEXT_ENCODING, cookies=self.COOKIES)
self.checkOnline()