Example #1
0
    def __init__(self, args):

        Plugin.__init__(self, args)

        self.filter_url_hooks = []
        if self.args.get("plugins"):
            self.filter_url_hooks = self.args["plugins"].get("filter_url") or []
Example #2
0
    def __init__(self, args, plugins=None):

        Plugin.__init__(self, args)

        self.filter_url_hooks = []
        if plugins:
            self.filter_url_hooks = plugins.get("filter_url") or []
Example #3
0
    def __init__(self, args, plugins=None):

        Plugin.__init__(self, args)

        self.filter_url_hooks = []
        if plugins:
            self.filter_url_hooks = plugins.get("filter_url") or []
Example #4
0
 def __init__(self, args):
     Plugin.__init__(self, args)
     self.do_index_body = bool(int(self.args.get("index_body", "0")))
     self.do_index = bool(int(self.args.get("index", "0"))) or self.do_index_body
     self.do_parse = (not bool(int(self.args.get("skip", "0")))) or self.do_index
Example #5
0
 def __init__(self, args):
     Plugin.__init__(self, args)
     self.do_parse = bool(int(self.args.get("parse", "1")))
     self.do_index = bool(int(self.args.get("index", "1"))) and self.do_parse
     self.do_index_body = bool(int(self.args.get("index_body", "1"))) and self.do_index