summaryrefslogtreecommitdiff
path: root/searx
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarIT.de>2022-02-07 15:05:40 +0100
committerGitHub <noreply@github.com>2022-02-07 15:05:40 +0100
commit5cb6301fbc0c71ee1154f62916bacb496ddc4fdc (patch)
tree763e9d2916b316784ee7ab3aea3e15c2fd915a70 /searx
parentae8e3f35438856b8cf6c4704b21ffb9cf62d6b7b (diff)
parent906a0a99cd018b3f33b731ad5ac416b509f3cac6 (diff)
downloadsearxng-5cb6301fbc0c71ee1154f62916bacb496ddc4fdc.tar.gz
searxng-5cb6301fbc0c71ee1154f62916bacb496ddc4fdc.zip
Merge pull request #880 from return42/fix-osm
[fix] openstreatmap: load thumbnail from uploads.wikimedia.org
Diffstat (limited to 'searx')
-rw-r--r--searx/engines/openstreetmap.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/searx/engines/openstreetmap.py b/searx/engines/openstreetmap.py
index 946869834..c619ce98e 100644
--- a/searx/engines/openstreetmap.py
+++ b/searx/engines/openstreetmap.py
@@ -14,7 +14,7 @@ from flask_babel import gettext
from searx.data import OSM_KEYS_TAGS, CURRENCIES
from searx.utils import searx_useragent
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 = {
@@ -168,7 +168,7 @@ def response(resp):
continue
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)
data = get_data(result, user_language, link_keys)