diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-10-04 10:52:31 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-10-04 10:52:31 +0200 |
commit | e2d4a21008fe1f44ca4d27abf2c18a85dda5df4a (patch) | |
tree | 71804983f54ad59baee2f1a0def78eb8e178e0e4 /module/plugins/Plugin.py | |
parent | new l18n files (diff) | |
download | pyload-e2d4a21008fe1f44ca4d27abf2c18a85dda5df4a.tar.xz |
plugin cleanups
Diffstat (limited to 'module/plugins/Plugin.py')
-rw-r--r-- | module/plugins/Plugin.py | 5 |
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 |