summaryrefslogtreecommitdiffstats
path: root/module/plugins/internal
diff options
context:
space:
mode:
authorGravatar Stefano <l.stickell@yahoo.it> 2013-10-02 15:57:29 +0200
committerGravatar Stefano <l.stickell@yahoo.it> 2013-10-02 16:08:43 +0200
commitf876908b6a1946845c1c7dff591d4d9f64643f82 (patch)
treee1b5ba8ba107225ba2e84f2ced7015fb2902ee6d /module/plugins/internal
parentMerge pull request #285 from vuolter/s/hoster/OneFichierCom (diff)
downloadpyload-f876908b6a1946845c1c7dff591d4d9f64643f82.tar.xz
Plugins: cosmetics See #286
Diffstat (limited to 'module/plugins/internal')
-rw-r--r--module/plugins/internal/SimpleHoster.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/module/plugins/internal/SimpleHoster.py b/module/plugins/internal/SimpleHoster.py
index 69ed57ff8..67505f41a 100644
--- a/module/plugins/internal/SimpleHoster.py
+++ b/module/plugins/internal/SimpleHoster.py
@@ -173,8 +173,9 @@ class SimpleHoster(Hoster):
self.file_info = {}
def setup(self):
- self.resumeDownload = self.multiDL = True if self.premium else False
- if isinstance(self.SH_COOKIES, list): set_cookies(self.req.cj, self.SH_COOKIES)
+ self.resumeDownload = self.multiDL = self.premium
+ if isinstance(self.SH_COOKIES, list):
+ set_cookies(self.req.cj, self.SH_COOKIES)
def process(self, pyfile):
pyfile.url = replace_patterns(pyfile.url, self.FILE_URL_REPLACEMENTS)