summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-02-13[mod] hostname_replace: replace hostnames in result's data_src paramMarkus Heiser
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>
2022-02-13[mod] result_templates/videos.html: replace embedded HTML by data_srcMarkus Heiser
Embedded HTML breaks SearXNG architecture. To modularize, HTML is generated in the templates (oscar & simple) and result parameter 'embedded' is replaced by 'data_src', an URL for embedded content (<iframe>). Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2022-02-12Merge pull request #892 from dalf/limiter-updateAlexandre Flament
plugin limiter: check only /image_proxy and /search
2022-02-12plugin limiter: check only /image_proxy and /searchAlexandre Flament
also adjust the number of req/time
2022-02-12Merge pull request #887 from unixfox/patch-5Markus Heiser
Update the XPath for fetching the Google results
2022-02-11Merge pull request #877 from return42/fix-876Alexandre Flament
[fix] docker generated new settings.yml does not work
2022-02-11Merge pull request #884 from return42/disable-deezerAlexandre Flament
[mod] disable deezer engine by default
2022-02-11Merge pull request #889 from searxng/dependabot/pip/master/mistletoe-0.8.2Alexandre Flament
Bump mistletoe from 0.8.1 to 0.8.2
2022-02-11Bump mistletoe from 0.8.1 to 0.8.2dependabot[bot]
Bumps [mistletoe](https://github.com/miyuchina/mistletoe) from 0.8.1 to 0.8.2. - [Release notes](https://github.com/miyuchina/mistletoe/releases) - [Changelog](https://github.com/miyuchina/mistletoe/blob/master/cutting-a-release.md) - [Commits](https://github.com/miyuchina/mistletoe/compare/v0.8.1...v0.8.2) --- updated-dependencies: - dependency-name: mistletoe dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
2022-02-11Merge pull request #890 from searxng/dependabot/pip/master/redis-4.1.3Alexandre Flament
Bump redis from 4.1.2 to 4.1.3
2022-02-11Merge pull request #891 from searxng/translations_updateMarkus Heiser
Update translations
2022-02-11[translations] update from Weblatesearxng-bot
085368cc - 2022-02-08 - akynr <ak.red@web.de> 9b531712 - 2022-02-09 - Justas Zabulionis <justas.zabulionis@gmail.com> 6e13d297 - 2022-02-06 - Markus Heiser <markus.heiser@darmarit.de> b1ac1da2 - 2022-02-06 - Markus Heiser <markus.heiser@darmarit.de> de117bfe - 2022-02-10 - Tamas Veres <zsumba1985@gmail.com> 7392a5b0 - 2022-02-10 - Markus Heiser <markus.heiser@darmarit.de> a28a60d9 - 2022-02-07 - Markus Heiser <markus.heiser@darmarit.de>
2022-02-11Bump redis from 4.1.2 to 4.1.3dependabot[bot]
Bumps [redis](https://github.com/redis/redis-py) from 4.1.2 to 4.1.3. - [Release notes](https://github.com/redis/redis-py/releases) - [Changelog](https://github.com/redis/redis-py/blob/master/CHANGES) - [Commits](https://github.com/redis/redis-py/compare/v4.1.2...v4.1.3) --- updated-dependencies: - dependency-name: redis dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
2022-02-09Update the XPath for fetching the Google resultsÉmilien Devos
2022-02-07[mod] disable deezer engine by defaultMarkus Heiser
To play content from deezer a account is needed, the majority of the SearXNG won't have. Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2022-02-07Merge pull request #880 from return42/fix-osmMarkus Heiser
[fix] openstreatmap: load thumbnail from uploads.wikimedia.org
2022-02-07[fix] openstreatmap: load thumbnail from uploads.wikimedia.orgMarkus Heiser
Openstreatmap images are now loaded from uploads.wikimedia.org instead of commons.wikimedia.org to prevent redirects. With `image_proxy` enabled images from commons.wikimedia.org cant be loaded since they are redirected. We already discussed this issue [875] and @tiekoetter fixed this issue in PR [878]. Related-to: - [875] https://github.com/searxng/searxng/issues/875 - [878] https://github.com/searxng/searxng/pull/878 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2022-02-07Merge pull request #878 from tiekoetter/fix-wikidataMarkus Heiser
Fix wikidata info box images
2022-02-07[pylint] searx/engines/wikidata.py (no functional change)Markus Heiser
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2022-02-07[fix] wikidata: URL decoding and file extension handlingLéon Tiekötter
Add '.png' to the second img_src_name if it has the extension '.svg'. Use urllib.parse.unquote for URL decoding.
2022-02-06[fix] wikidata engine: select image with higher (not lower) priorityMarkus Heiser
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2022-02-06wikidata: load thumbnail instead of full imageLéon Tiekötter
2022-02-06[fix] wikidata info box imagesLéon Tiekötter
Wikidata info box images are now loaded from uploads.wikimedia.org instead of commons.wikimedia.org to prevent redirects Co-authored-by: Markus Heiser <markus.heiser@darmarit.de>
2022-02-06[fix] docker generated new settings.yml does not workMarkus Heiser
In commit 5a7b12e we normalized settings.yml and c6a5cc019 and de5a8ee7d we changed instance name to ``instance_name: "SearXNG"``. This patch adjust the sed expressions to modify: dockerfiles/docker-entrypoint.sh Closes: https://github.com/searxng/searxng/issues/876 Suggested-by: @neiaberau Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2022-02-05Merge pull request #867 from return42/fix-base_url_randAlexandre Flament
[fix] invidious engine: store random base_url in param
2022-02-05Merge pull request #848 from not-my-profile/help-routeAlexandre Flament
Introduce `/help` route
2022-02-05[enh] avoid /about redirect in template linksMartin Fischer
2022-02-04Merge pull request #839 from dalf/docs_searx_utilsMarkus Heiser
[mod] add documentation about searx.utils
2022-02-04Merge pull request #870 from not-my-profile/autocomplete-offMarkus Heiser
preferences: Set autocomplete=off for form
2022-02-04preferences: Set autocomplete=off for formMartin Fischer
Otherwise you can change the value of a select, refresh the page and the preferences stay changed, leaving the wrong impression that they were saved.
2022-02-04[pylint] engines/invidious.pyMarkus Heiser
Fix remarks from pylint and remove usless comments Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2022-02-04[fix] invidious engine: store random base_url in paramMarkus Heiser
Two different threads ( = two different user queries) can call the request function in a row and then the response function. The namespace will be same since this is the same engine. To keep exactly the same value ``base_url`` must be stored in params and then retrieve using ``resp.search_params["base_url"]``. Suggested-by: @dalf https://github.com/searxng/searxng/pull/862#discussion_r799324861 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2022-02-04Merge pull request #862 from return42/fix-858Markus Heiser
[fix] solidtorrents engine - JSON API no longer exists
2022-02-04[fix] solidtorrents engine: store random bas_url in paramMarkus Heiser
Two different threads ( = two different user queries) can call the request function in a row and then the response function. The namespace will be same since this is the same engine. To keep exactly the same value ``base_url`` must be stored in params and then retrieve using ``resp.search_params["base_url"]``. Suggested-by: @dalf https://github.com/searxng/searxng/pull/862#discussion_r799324861 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2022-02-04[mod] solidtorrents engine: add metadata & torrentfileMarkus Heiser
BTW: define min_len in eval_xpath_list of 'stats' list Suggested-by: @dalf https://github.com/searxng/searxng/pull/862#pullrequestreview-872910744 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2022-02-04[fix] solidtorrents engine: use get_torrent_size from searx.utilsMarkus Heiser
Suggested-by: @dalf https://github.com/searxng/searxng/pull/862#pullrequestreview-872858489 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2022-02-04[fix] solidtorrents engine: JSON API no longer existsMarkus Heiser
The API endpoint, we where using does not exist anymore. This patch is a rewrite that parses the HTML page. Related: https://github.com/paulgoio/searxng/issues/17 Closes: https://github.com/searxng/searxng/issues/858 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2022-02-04Merge pull request #863 from searxng/dependabot/pip/master/black-22.1.0Markus Heiser
Bump black from 21.12b0 to 22.1.0
2022-02-04Merge pull request #865 from ↵Markus Heiser
searxng/dependabot/npm_and_yarn/searx/static/themes/simple/master/sharp-0.30.0 Bump sharp from 0.29.3 to 0.30.0 in /searx/static/themes/simple
2022-02-04[fix] issue reported by pylint 22.1.0Markus Heiser
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2022-02-04Merge pull request #864 from searxng/dependabot/pip/master/twine-3.8.0Alexandre Flament
Bump twine from 3.7.1 to 3.8.0
2022-02-04Merge pull request #866 from searxng/translations_updateAlexandre Flament
Update translations
2022-02-04[translations] update from Weblatesearxng-bot
bf218121 - 2022-01-31 - Markus Heiser <markus.heiser@darmarit.de> ba9e50fd - 2022-01-30 - Genghis Khan <genghiskhan@gmx.ca> 258505ba - 2022-01-29 - Markus Heiser <markus.heiser@darmarit.de> dacbf882 - 2022-01-31 - Markus Mikkonen <markus.mikkonen@outlook.com> 968e7f6b - 2022-02-02 - Marco Ciampa <ciampix@posteo.net>
2022-02-04Bump sharp from 0.29.3 to 0.30.0 in /searx/static/themes/simpledependabot[bot]
Bumps [sharp](https://github.com/lovell/sharp) from 0.29.3 to 0.30.0. - [Release notes](https://github.com/lovell/sharp/releases) - [Changelog](https://github.com/lovell/sharp/blob/main/docs/changelog.md) - [Commits](https://github.com/lovell/sharp/compare/v0.29.3...v0.30.0) --- updated-dependencies: - dependency-name: sharp dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
2022-02-04Bump twine from 3.7.1 to 3.8.0dependabot[bot]
Bumps [twine](https://github.com/pypa/twine) from 3.7.1 to 3.8.0. - [Release notes](https://github.com/pypa/twine/releases) - [Changelog](https://github.com/pypa/twine/blob/main/docs/changelog.rst) - [Commits](https://github.com/pypa/twine/compare/3.7.1...3.8.0) --- updated-dependencies: - dependency-name: twine dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
2022-02-04Bump black from 21.12b0 to 22.1.0dependabot[bot]
Bumps [black](https://github.com/psf/black) from 21.12b0 to 22.1.0. - [Release notes](https://github.com/psf/black/releases) - [Changelog](https://github.com/psf/black/blob/main/CHANGES.md) - [Commits](https://github.com/psf/black/commits/22.1.0) --- updated-dependencies: - dependency-name: black dependency-type: direct:development ... Signed-off-by: dependabot[bot] <support@github.com>
2022-02-02Merge pull request #618 from dalf/limiterAlexandre Flament
[enh] limiter plugin
2022-02-02[enh] limiter pluginAlexandre Flament
can replace filtron: * rate limite the number of request per IP and per (IP, User-Agent) * block some bots use Redis data stored in Redis never contains the IP addresses, only HMAC using the secret_key Co-authored-by: Markus Heiser <markus.heiser@darmarit.de>
2022-02-01Merge pull request #849 from return42/fix-787Markus Heiser
[fix] engines description - currency_convert.py
2022-02-01[pylint] engines/currency_convert.pyMarkus Heiser
Fix remarks from pylint Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>