.oO SearXNG Developer Documentation Oo.
|
Go to the source code of this file.
Namespaces | |
namespace | searx |
namespace | searx.plugins |
namespace | searx.plugins.hostname_replace |
Functions | |
searx.plugins.hostname_replace.on_result (_request, _search, result) | |
Variables | |
searx.plugins.hostname_replace.name = gettext('Hostname replace') | |
searx.plugins.hostname_replace.description = gettext('Rewrite result hostnames or remove results based on the hostname') | |
bool | searx.plugins.hostname_replace.default_on = False |
str | searx.plugins.hostname_replace.preference_section = 'general' |
str | searx.plugins.hostname_replace.plugin_id = 'hostname_replace' |
dict | searx.plugins.hostname_replace.replacements = {re.compile(p): r for (p, r) in settings[plugin_id].items()} if plugin_id in settings else {} |
searx.plugins.hostname_replace.logger = logger.getChild(plugin_id) | |
str | searx.plugins.hostname_replace.parsed = 'parsed_url' |
list | searx.plugins.hostname_replace._url_fields = ['iframe_src', 'audio_src'] |