summaryrefslogtreecommitdiff
path: root/searx/engines/mixcloud.py
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2022-02-07 16:45:48 +0100
committerMarkus Heiser <markus.heiser@darmarit.de>2022-02-13 14:20:47 +0100
commitb9a2e8b387212d35cc83da50a07ee8fa47d2a56e (patch)
treeba6fd96f8deb162b7d80bc4ae6a9cc6abcbeb29f /searx/engines/mixcloud.py
parent46e131fdadd94910c0e258aa4e855ad8019edbf7 (diff)
downloadsearxng-b9a2e8b387212d35cc83da50a07ee8fa47d2a56e.tar.gz
searxng-b9a2e8b387212d35cc83da50a07ee8fa47d2a56e.zip
[mod] hostname_replace: replace hostnames in result's data_src param
To test you need to redirect embeded videos (e.g.) from youtube to a invidios instance. Search for videos using engine `!youtube lebowski`. The result URLs and the embeded videos should link to the invidios instance. Here is an example of such a `hostname_replace` configuration:: hostname_replace: # youtube --> Invidious '(.*\.)?youtube-nocookie\.com': 'invidio.xamh.de' '(.*\.)?youtube\.com$': 'invidio.xamh.de' '(.*\.)?invidious\.snopyta\.org$': 'invidio.xamh.de' '(.*\.)?vid\.puffyan\.us': 'invidio.xamh.de' '(.*\.)?invidious\.kavin\.rocks$': 'invidio.xamh.de' '(.*\.)?inv\.riverside\.rocks$': 'invidio.xamh.de' Closes: https://github.com/searxng/searxng/issues/873 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'searx/engines/mixcloud.py')
0 files changed, 0 insertions, 0 deletions