summaryrefslogtreecommitdiff
path: root/searx/engines/bing_news.py
diff options
context:
space:
mode:
Diffstat (limited to 'searx/engines/bing_news.py')
-rw-r--r--searx/engines/bing_news.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/searx/engines/bing_news.py b/searx/engines/bing_news.py
index e93f7fea3..2e759bc7a 100644
--- a/searx/engines/bing_news.py
+++ b/searx/engines/bing_news.py
@@ -123,7 +123,9 @@ def response(resp):
thumbnail = None
imagelink = eval_xpath_getindex(newsitem, './/a[@class="imagelink"]//img', 0, None)
if imagelink is not None:
- thumbnail = 'https://www.bing.com/' + imagelink.attrib.get('src')
+ thumbnail = imagelink.attrib.get('src')
+ if not thumbnail.startswith("https://www.bing.com"):
+ thumbnail = 'https://www.bing.com/' + thumbnail
results.append(
{