summaryrefslogtreecommitdiff
path: root/searx
AgeCommit message (Collapse)Author
2022-02-26[simple theme] replace Image_layout.js with flexbox CS impl.mrpaulblack
* drop image_layout.js from simple theme * move image_layout.js to oscar theme and delete common js dir (since its empty now) * align top position of image detail modal with bottom position of search header * use flexbox to display images; row height can be set via @results-image-row-height in defenitions.less * display span title underneath each image with a max width of 12rem * increase margin and padding around image article on desktop and tablet * make article height smaller on phone layout (height of 6rem) to display more content on current view * remove content from result, if the title and content matches * use a group that cotains the flex image article, if images are mixed with other categories * fix pylint issues in webapp.py * use the default.html result template in unit tests (thanks @return42)
2022-02-26Merge pull request #924 from MontyQI/search-filtersPaul Braeuning
Search filters changes
2022-02-26[build] /staticMonty
2022-02-26Search filters changesMonty
Better search filters view on mobile.
2022-02-25[translations] update from Weblatesearxng-bot
3ecf1edf - 2022-02-21 - Linerly <linerly@protonmail.com> f6c9465b - 2022-02-23 - Markus Heiser <markus.heiser@darmarit.de> 988c0c74 - 2022-02-22 - Alexandre Flament <alex@al-f.net> 60fbd734 - 2022-02-22 - Markus Heiser <markus.heiser@darmarit.de>
2022-02-21Merge pull request #913 from return42/add-artworkMarkus Heiser
[mod] add artwork to mixcloud & soundcloud engines
2022-02-21[build] /staticMarkus Heiser
2022-02-21[mod] bandcamp & genius: in result set img_src instead thumbnailMarkus Heiser
Suggested-by: @dalf https://github.com/searxng/searxng/pull/900#issuecomment-1046009057 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2022-02-21[fix] genius: add player an avoid exceptional programmingMarkus Heiser
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[mod] version formattingLéon Tiekötter
Change SearXNG version formatting to YYYY.MM.DD-commit_hash
2022-02-21Merge pull request #916 from dalf/pref_infinite_scroll2Alexandre Flament
Convert the infinite_scroll plugin as a preference (second version)
2022-02-20[build] /staticAlexandre Flament
2022-02-20[mod] infinite_scroll as preferenceAlexandre Flament
* 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[mod] switch default theme from oscar to simpleMarkus Heiser
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2022-02-20Merge pull request #910 from tiekoetter/fix-909Markus Heiser
[fix] google images engine: Fix 'scrap_img_by_id' function
2022-02-19[mod] add artwork to mixcloud & soundcloud enginesMarkus Heiser
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2022-02-19[build] /staticMarkus Heiser
2022-02-19[mod] simple theme: define a '.show-content-button'Markus Heiser
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[fix] image_proxy: allow HTTP redirectsMarkus Heiser
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[fix] google images engine: Fix 'scrap_img_by_id' functionMarkus Heiser
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-19Merge pull request #900 from return42/fix-883Alexandre Flament
[fix] bandcamp: fix itemtype (album|track) and exceptions
2022-02-19Merge pull request #893 from return42/mvw-videoMarkus Heiser
[mod] mediathekviewweb engine: add data_src and use videos template
2022-02-19[mod] mediathekviewweb engine: add iframe_src and use videos templateMarkus Heiser
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2022-02-18[build] /staticMarkus Heiser
2022-02-18[fix] bandcamp: fix itemtype (album|track) and exceptionsMarkus Heiser
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-18Merge pull request #899 from dalf/limiter_updateAlexandre Flament
[limiter] update
2022-02-18Merge pull request #882 from return42/fix-873Alexandre Flament
[fix] replace embedded HTML by data_src
2022-02-18[build] /staticMarkus Heiser
2022-02-18[mod] simple theme: set height of embedded content (iframe)Markus Heiser
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[mod] templates: rename field for <iframe> URL to iframe_srcMarkus Heiser
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[fix] simple theme: support browsers which do not have aspect-ratioMarkus Heiser
Suggested-by: @dalf https://github.com/searxng/searxng/pull/882#discussion_r805187303 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2022-02-18[oscar] add scrolling="no" to iframes in HTML templatesMarkus Heiser
Suggested-by: @dalf https://github.com/searxng/searxng/pull/882#discussion_r805180787 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2022-02-18[fix] hostname_replace.py: don't stop replace URL in fieldsMarkus Heiser
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[translations] update from Weblatesearxng-bot
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-17[limiter] updateAlexandre Flament
2022-02-13[fix] replace peer.tube by peertube.bizMarkus Heiser
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[mod] result_templates/default.html replace embedded HTML by data_src audio_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' (and 'audio_src'), an URL for embedded content (<iframe>). Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
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 #884 from return42/disable-deezerAlexandre Flament
[mod] disable deezer engine by default
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-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-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-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>