summaryrefslogtreecommitdiffstats
path: root/module/plugins/Plugin.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-10-04 10:52:31 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-10-04 10:52:31 +0200
commite2d4a21008fe1f44ca4d27abf2c18a85dda5df4a (patch)
tree71804983f54ad59baee2f1a0def78eb8e178e0e4 /module/plugins/Plugin.py
parentnew l18n files (diff)
downloadpyload-e2d4a21008fe1f44ca4d27abf2c18a85dda5df4a.tar.xz
plugin cleanups
Diffstat (limited to 'module/plugins/Plugin.py')
-rw-r--r--module/plugins/Plugin.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/module/plugins/Plugin.py b/module/plugins/Plugin.py
index 720d64091..9417a4bfd 100644
--- a/module/plugins/Plugin.py
+++ b/module/plugins/Plugin.py
@@ -402,7 +402,7 @@ class Plugin(Base):
return result
- def load(self, url, get={}, post={}, ref=True, cookies=True, just_header=False, utf8=False, decode=False):
+ def load(self, url, get={}, post={}, ref=True, cookies=True, just_header=False, decode=False):
"""Load content at url and returns it
:param url:
@@ -411,7 +411,6 @@ class Plugin(Base):
:param ref:
:param cookies:
:param just_header: if True only the header will be retrieved and returned as dict
- :param utf8: Deprecated
:param decode: Wether to decode the output according to http header, should be True in most cases
:return: Loaded content
"""
@@ -419,7 +418,7 @@ class Plugin(Base):
#utf8 vs decode -> please use decode attribute in all future plugins
if type(url) == unicode: url = str(url)
- res = self.req.load(url, get, post, ref, cookies, just_header, decode=utf8 or decode)
+ res = self.req.load(url, get, post, ref, cookies, just_header, decode=decode)
if self.core.debug:
from inspect import currentframe