From 4efea761bd1c5ee1dbd49b7f549eb82ec3e4908f Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Fri, 21 Nov 2014 07:24:43 +0100 Subject: [Plugin] Fix typo --- pyload/plugins/Plugin.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'pyload/plugins') 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) -- cgit v1.2.3