mirror of
https://github.com/searxng/searxng.git
synced 2024-11-22 20:17:45 +01:00
[fix] openstreatmap: load thumbnail from uploads.wikimedia.org
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>
This commit is contained in:
parent
ae8e3f3543
commit
906a0a99cd
@ -14,7 +14,7 @@ from flask_babel import gettext
|
|||||||
from searx.data import OSM_KEYS_TAGS, CURRENCIES
|
from searx.data import OSM_KEYS_TAGS, CURRENCIES
|
||||||
from searx.utils import searx_useragent
|
from searx.utils import searx_useragent
|
||||||
from searx.external_urls import get_external_url
|
from searx.external_urls import get_external_url
|
||||||
from searx.engines.wikidata import send_wikidata_query, sparql_string_escape
|
from searx.engines.wikidata import send_wikidata_query, sparql_string_escape, get_thumbnail
|
||||||
|
|
||||||
# about
|
# about
|
||||||
about = {
|
about = {
|
||||||
@ -168,7 +168,7 @@ def response(resp):
|
|||||||
continue
|
continue
|
||||||
|
|
||||||
url, osm, geojson = get_url_osm_geojson(result)
|
url, osm, geojson = get_url_osm_geojson(result)
|
||||||
img_src = get_img_src(result)
|
img_src = get_thumbnail(get_img_src(result))
|
||||||
links, link_keys = get_links(result, user_language)
|
links, link_keys = get_links(result, user_language)
|
||||||
data = get_data(result, user_language, link_keys)
|
data = get_data(result, user_language, link_keys)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user