diff options
author | Walter Purcaro <vuolter@gmail.com> | 2014-11-21 07:10:34 +0100 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2014-11-21 07:10:34 +0100 |
commit | 8bcb70d042bf93fefe6f6b3737ce0bee396bcf75 (patch) | |
tree | f45db519207cd369489f8b105176d8a4d3d39540 /module/plugins | |
parent | [XFSHoster] Updated (diff) | |
download | pyload-8bcb70d042bf93fefe6f6b3737ce0bee396bcf75.tar.xz |
[SimpleHoster] CONTENT_DISPOSITION feature
Diffstat (limited to 'module/plugins')
-rw-r--r-- | module/plugins/internal/SimpleHoster.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/module/plugins/internal/SimpleHoster.py b/module/plugins/internal/SimpleHoster.py index e052a79ae..9cf8eb541 100644 --- a/module/plugins/internal/SimpleHoster.py +++ b/module/plugins/internal/SimpleHoster.py @@ -165,10 +165,11 @@ class SimpleHoster(Hoster): SIZE_REPLACEMENTS = [] URL_REPLACEMENTS = [] - TEXT_ENCODING = False #: Set to True or encoding name if encoding in http header is not correct + TEXT_ENCODING = False #: Set to True or encoding name if encoding value in http header is not correct COOKIES = True #: or False or list of tuples [(domain, name, value)] FORCE_CHECK_TRAFFIC = False #: Set to True to force checking traffic left for premium account - CHECK_DIRECT_LINK = None #: Set to None to set True if self.account else False + CHECK_DIRECT_LINK = None #: Set to None self-set to True if self.account else to False + CONTENT_DISPOSITION = False #: Set to True to replace file name with content-disposition value in http header @classmethod @@ -237,8 +238,8 @@ class SimpleHoster(Hoster): def init(self): - self.info = {} #@TODO: Remove in 0.4.10 - self.link = None #@TODO: Move to hoster class in 0.4.10 + self.info = {} #@TODO: Remove in 0.4.10 + self.link = "" #@TODO: Move to hoster class in 0.4.10 def setup(self): @@ -300,7 +301,7 @@ class SimpleHoster(Hoster): self.handleFree() if self.link: - self.download(self.link) + self.download(self.link, disposition=self.CONTENT_DISPOSITION) def checkStatus(self): |