summaryrefslogtreecommitdiffstats
path: root/module/plugins/Base.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2012-01-03 20:41:23 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2012-01-03 20:41:23 +0100
commit4a3a81b63cd85cc3dcd9669868a2079da65838a2 (patch)
treefab8d99437bfc8d0fbd9deba18aa2da0f61aaae4 /module/plugins/Base.py
parentupdate mediafire, easybytez (diff)
downloadpyload-4a3a81b63cd85cc3dcd9669868a2079da65838a2.tar.xz
fixes for old style decrypter
Diffstat (limited to 'module/plugins/Base.py')
-rw-r--r--module/plugins/Base.py17
1 files changed, 6 insertions, 11 deletions
diff --git a/module/plugins/Base.py b/module/plugins/Base.py
index b2338a01f..0ad0d5caa 100644
--- a/module/plugins/Base.py
+++ b/module/plugins/Base.py
@@ -90,18 +90,13 @@ class Base(object):
getattr(self.log, level)("%s: %s" % (self.__name__, sep.join([a if isinstance(a, basestring) else str(a) for a in args])))
- def setConf(self, option, value):
- """ see `setConfig` """
- self.core.config.set(self.__name__, option, value)
-
def setConfig(self, option, value):
""" Set config value for current plugin
:param option:
:param value:
- :return:
"""
- self.setConf(option, value)
+ self.core.config.set(self.__name__, option, value)
def getConf(self, option):
""" see `getConfig` """
@@ -148,11 +143,11 @@ class Base(object):
def load(self, url, get={}, post={}, ref=True, cookies=True, just_header=False, decode=False):
"""Load content at url and returns it
- :param url:
- :param get:
- :param post:
- :param ref:
- :param cookies:
+ :param url: url as string
+ :param get: GET as dict
+ :param post: POST as dict
+ :param ref: Set HTTP_REFERER header
+ :param cookies: use saved cookies
:param just_header: if True only the header will be retrieved and returned as dict
:param decode: Wether to decode the output according to http header, should be True in most cases
:return: Loaded content