Markus Heiser
bded1ee280
[fix] genius: add player an avoid exceptional programming
...
Add player:
- The players are just playing 30sec from the title. Some of the player will be
blocked because of a cross-origin request and some players will link to apple
when you press the play button.
Avoid exceptions and (and BTW improve results)
- ERROR searx.engines.genius : list index out of range
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2022-02-21 22:12:07 +01:00
Markus Heiser
cb037c89f9
Merge pull request #917 from tiekoetter/version-format
...
[mod] version formatting
2022-02-21 21:42:56 +01:00
Léon Tiekötter
de5062c10a
[mod] version formatting
...
Change SearXNG version formatting to YYYY.MM.DD-commit_hash
2022-02-21 21:18:37 +01:00
Alexandre Flament
8230603f48
Merge pull request #916 from dalf/pref_infinite_scroll2
...
Convert the infinite_scroll plugin as a preference (second version)
2022-02-21 12:49:04 +01:00
Alexandre Flament
1832ec742a
[build] /static
2022-02-20 22:58:51 +01:00
Alexandre Flament
56e34947a6
[mod] infinite_scroll as preference
...
* oscar theme: code from searx/plugins/infinite_scroll.py
* simple theme: new implementation
Co-authored-by: Markus Heiser <markus.heiser@darmarIT.de>
2022-02-20 22:58:51 +01:00
Paul Braeuning
6c38bb5994
Merge pull request #665 from return42/default-theme
...
[mod] switch default theme from oscar to simple
2022-02-20 19:59:15 +01:00
Markus Heiser
fdeece0aae
[fix] changeover of the unit tests to the simple theme
...
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2022-02-20 18:51:12 +01:00
Markus Heiser
5ec9eb8030
[mod] switch default theme from oscar to simple
...
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2022-02-20 18:36:41 +01:00
Markus Heiser
36aee70c24
Merge pull request #910 from tiekoetter/fix-909
...
[fix] google images engine: Fix 'scrap_img_by_id' function
2022-02-20 18:29:50 +01:00
Alexandre Flament
883e9c1ddd
Merge pull request #885 from return42/mod-simple
...
[mod] simple theme: define a '.show-content-button'
2022-02-19 16:07:05 +01:00
Markus Heiser
efd81f9266
[build] /static
2022-02-19 15:13:09 +01:00
Markus Heiser
16d05ca285
[mod] simple theme: define a '.show-content-button'
...
With LESS function '.show-content-button' all the *Show-Media* links becomes
bottons.
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2022-02-19 15:12:50 +01:00
Markus Heiser
c2d9c93b3b
[fix] image_proxy: allow HTTP redirects
...
Without redirects the load of various images will fail when image_proxy is
enabled [1].
[1] https://github.com/searxng/searxng/pull/910#issuecomment-1045966577
Suggested-by: @dalf [1]
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2022-02-19 14:34:02 +01:00
Markus Heiser
4a28b593c2
[fix] google images engine: Fix 'scrap_img_by_id' function
...
The 'scrap_img_by_id' function didn't return any longer anything useful. This
fix allows the google images engine to present the full source image instead of
only the thumbnail.
The function scrap_img_by_id() is rpelaced by a fully rewrite to parse image
URLs by a regular expression. The new function parse_urls_img_from_js(dom)
returns a mapping of data-id to image URL.
Closes: https://github.com/searxng/searxng/issues/909
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2022-02-19 14:33:56 +01:00
Alexandre Flament
ace5401632
Merge pull request #900 from return42/fix-883
...
[fix] bandcamp: fix itemtype (album|track) and exceptions
2022-02-19 13:42:53 +01:00
Markus Heiser
e9a227c606
Merge pull request #893 from return42/mvw-video
...
[mod] mediathekviewweb engine: add data_src and use videos template
2022-02-19 00:55:46 +01:00
Markus Heiser
943a7fdcb5
[mod] mediathekviewweb engine: add iframe_src and use videos template
...
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2022-02-19 00:50:54 +01:00
Markus Heiser
fa3cd7a696
[build] /static
2022-02-18 22:46:51 +01:00
Markus Heiser
05c105b837
[fix] bandcamp: fix itemtype (album|track) and exceptions
...
BTW: polish implementation and show tracklist for albums
Closes: https://github.com/searxng/searxng/issues/883
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2022-02-18 22:44:43 +01:00
Alexandre Flament
29182eb1c9
Merge pull request #899 from dalf/limiter_update
...
[limiter] update
2022-02-18 22:17:26 +01:00
Alexandre Flament
bf2a2ed48f
Merge pull request #882 from return42/fix-873
...
[fix] replace embedded HTML by data_src
2022-02-18 20:55:40 +01:00
Markus Heiser
c81b46150e
Merge pull request #903 from searxng/dependabot/pip/master/nose2-coverage_plugin--0.11.0
...
Bump nose2[coverage_plugin] from 0.10.0 to 0.11.0
2022-02-18 20:28:16 +01:00
Markus Heiser
949df1f63e
Merge pull request #904 from searxng/dependabot/pip/master/typing-extensions-4.1.1
...
Bump typing-extensions from 4.0.1 to 4.1.1
2022-02-18 19:52:59 +01:00
Markus Heiser
761885682d
[build] /static
2022-02-18 19:00:51 +01:00
Markus Heiser
8acf540f0e
[mod] simple theme: set height of embedded content (iframe)
...
This commit sets appropriate height of the (embedded) player from:
- soundcloud
- mixcloud
- deezer
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2022-02-18 19:00:51 +01:00
Markus Heiser
7352c6bc79
[mod] templates: rename field for <iframe> URL to iframe_src
...
Rename result field data_src to iframe_src
Suggested-by: @dalf https://github.com/searxng/searxng/pull/882#issuecomment-1037997402
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2022-02-18 19:00:49 +01:00
Markus Heiser
f5e8cfade2
[fix] simple theme: support browsers which do not have aspect-ratio
...
Suggested-by: @dalf https://github.com/searxng/searxng/pull/882#discussion_r805187303
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2022-02-18 19:00:02 +01:00
Markus Heiser
50ee7bcac6
[oscar] add scrolling="no" to iframes in HTML templates
...
Suggested-by: @dalf https://github.com/searxng/searxng/pull/882#discussion_r805180787
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2022-02-18 19:00:02 +01:00
Markus Heiser
795e8af61d
[fix] hostname_replace.py: don't stop replace URL in fields
...
This is a rewrite of the hostname_replace.py that:
- don't stop to replace URL in fields ('data_src', 'audio_src') if there isn't a
'parsed_url',
- adds a comment about keep or remove a result from the result list
- adds a loop over ['data_src', 'audio_src'] instead of doubling code lines
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2022-02-18 18:59:58 +01:00
Alexandre Flament
12b5f9e561
Merge pull request #905 from searxng/dependabot/pip/master/flask-2.0.3
...
Bump flask from 2.0.2 to 2.0.3
2022-02-18 11:54:42 +01:00
Alexandre Flament
4a669247ed
Merge pull request #902 from searxng/dependabot/pip/master/lxml-4.8.0
...
Bump lxml from 4.7.1 to 4.8.0
2022-02-18 11:54:29 +01:00
Alexandre Flament
bcd71e0998
Merge pull request #901 from searxng/dependabot/pip/master/redis-4.1.4
...
Bump redis from 4.1.3 to 4.1.4
2022-02-18 08:37:40 +01:00
Alexandre Flament
eb25f06d8b
Merge pull request #907 from searxng/translations_update
...
Update translations
2022-02-18 08:36:14 +01:00
searxng-bot
1084f5f42c
[translations] update from Weblate
...
8daeaf72
- 2022-02-16 - mezysinc <mezysinc@mailsac.com>
f373b0a4
- 2022-02-13 - temp <temp@mykolab.com>
273ae271
- 2022-02-16 - Márton Farkas <farkasmrton@gmail.com>
956496a3
- 2022-02-12 - Alexandre Flament <alex@al-f.net>
acf6d3ae
- 2022-02-15 - Markus Heiser <markus.heiser@darmarit.de>
aec5670e
- 2022-02-11 - Markus Heiser <markus.heiser@darmarit.de>
2022-02-18 07:17:24 +00:00
dependabot[bot]
ec55eea435
Bump flask from 2.0.2 to 2.0.3
...
Bumps [flask](https://github.com/pallets/flask ) from 2.0.2 to 2.0.3.
- [Release notes](https://github.com/pallets/flask/releases )
- [Changelog](https://github.com/pallets/flask/blob/main/CHANGES.rst )
- [Commits](https://github.com/pallets/flask/compare/2.0.2...2.0.3 )
---
updated-dependencies:
- dependency-name: flask
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-02-18 07:07:35 +00:00
dependabot[bot]
ca2e878f34
Bump typing-extensions from 4.0.1 to 4.1.1
...
Bumps [typing-extensions](https://github.com/python/typing ) from 4.0.1 to 4.1.1.
- [Release notes](https://github.com/python/typing/releases )
- [Changelog](https://github.com/python/typing/blob/master/typing_extensions/CHANGELOG )
- [Commits](https://github.com/python/typing/compare/4.0.1...4.1.1 )
---
updated-dependencies:
- dependency-name: typing-extensions
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-02-18 07:07:29 +00:00
dependabot[bot]
b75c99bb41
Bump nose2[coverage_plugin] from 0.10.0 to 0.11.0
...
Bumps [nose2[coverage_plugin]](https://github.com/nose-devs/nose2 ) from 0.10.0 to 0.11.0.
- [Release notes](https://github.com/nose-devs/nose2/releases )
- [Changelog](https://github.com/nose-devs/nose2/blob/main/docs/changelog.rst )
- [Commits](https://github.com/nose-devs/nose2/compare/0.10.0...0.11.0 )
---
updated-dependencies:
- dependency-name: nose2[coverage_plugin]
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-02-18 07:07:24 +00:00
dependabot[bot]
72b0b84743
Bump lxml from 4.7.1 to 4.8.0
...
Bumps [lxml](https://github.com/lxml/lxml ) from 4.7.1 to 4.8.0.
- [Release notes](https://github.com/lxml/lxml/releases )
- [Changelog](https://github.com/lxml/lxml/blob/master/CHANGES.txt )
- [Commits](https://github.com/lxml/lxml/compare/lxml-4.7.1...lxml-4.8.0 )
---
updated-dependencies:
- dependency-name: lxml
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-02-18 07:07:18 +00:00
dependabot[bot]
5fa56f442e
Bump redis from 4.1.3 to 4.1.4
...
Bumps [redis](https://github.com/redis/redis-py ) from 4.1.3 to 4.1.4.
- [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.3...v4.1.4 )
---
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-18 07:07:09 +00:00
Alexandre Flament
d1b7debac6
[limiter] update
2022-02-17 20:27:02 +01:00
Alexandre Flament
288e3086d2
Merge pull request #896 from return42/fi-peertube
...
[fix] replace peer.tube by peertube.biz
2022-02-15 13:04:07 +01:00
Markus Heiser
ae8b174e93
[fix] replace peer.tube by peertube.biz
...
More peertube instances are listed at [1]
[1] https://instances.joinpeertube.org/instances
Closes: https://github.com/searxng/searxng/issues/881
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2022-02-13 22:48:09 +01:00
Markus Heiser
98cab4cf75
[mod] result_templates/default.html replace embedded HTML by data_src audio_src
...
Embedded HTML breaks SearXNG architecture. To modularize, HTML is generated in
the templates (oscar & simple) and result parameter 'embedded' is replaced by
'data_src' (and 'audio_src'), an URL for embedded content (<iframe>).
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2022-02-13 14:20:47 +01:00
Markus Heiser
b9a2e8b387
[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>
2022-02-13 14:20:47 +01:00
Markus Heiser
46e131fdad
[mod] result_templates/videos.html: replace embedded HTML by data_src
...
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-13 14:20:47 +01:00
Alexandre Flament
a4942213a1
Merge pull request #892 from dalf/limiter-update
...
plugin limiter: check only /image_proxy and /search
2022-02-12 18:17:05 +01:00
Alexandre Flament
b99ccd7c02
plugin limiter: check only /image_proxy and /search
...
also adjust the number of req/time
2022-02-12 15:57:07 +01:00
Markus Heiser
9cd9dfd26e
Merge pull request #887 from unixfox/patch-5
...
Update the XPath for fetching the Google results
2022-02-12 15:11:27 +01:00
Alexandre Flament
8aba858057
Merge pull request #877 from return42/fix-876
...
[fix] docker generated new settings.yml does not work
2022-02-11 22:44:22 +01:00