summaryrefslogtreecommitdiffstats
path: root/pyload/plugins
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-11-21 07:24:43 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-11-21 07:24:43 +0100
commit4efea761bd1c5ee1dbd49b7f549eb82ec3e4908f (patch)
treec5442650b1628af9f37748a4ac21300eeb4046cf /pyload/plugins
parentConvert tabs to 4-whitespaces (diff)
downloadpyload-4efea761bd1c5ee1dbd49b7f549eb82ec3e4908f.tar.xz
[Plugin] Fix typo
Diffstat (limited to 'pyload/plugins')
-rw-r--r--pyload/plugins/Plugin.py5
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)