diff options
author | Walter Purcaro <vuolter@gmail.com> | 2014-11-21 07:24:43 +0100 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2014-11-21 07:24:43 +0100 |
commit | 4efea761bd1c5ee1dbd49b7f549eb82ec3e4908f (patch) | |
tree | c5442650b1628af9f37748a4ac21300eeb4046cf /pyload/plugins | |
parent | Convert tabs to 4-whitespaces (diff) | |
download | pyload-4efea761bd1c5ee1dbd49b7f549eb82ec3e4908f.tar.xz |
[Plugin] Fix typo
Diffstat (limited to 'pyload/plugins')
-rw-r--r-- | pyload/plugins/Plugin.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pyload/plugins/Plugin.py b/pyload/plugins/Plugin.py index 2ab638f3b..a81fbef33 100644 --- a/pyload/plugins/Plugin.py +++ b/pyload/plugins/Plugin.py @@ -525,6 +525,9 @@ class Plugin(Base): res = self.req.load(url, get, post, ref, cookies, just_header, decode=decode, follow_location=follow_location, save_cookies=save_cookies) + if decode: + res = encode(res) + if self.core.debug: from inspect import currentframe @@ -536,7 +539,7 @@ class Plugin(Base): with open(framefile, "wb") as f: del frame #: delete the frame or it wont be cleaned - f.write(encode(res)) + f.write(res) except IOError, e: self.logError(e) |