diff options
author | Léo Bourrel <leo.bourrel@epitech.eu> | 2018-12-19 11:12:25 +0100 |
---|---|---|
committer | Léo Bourrel <leo.bourrel@epitech.eu> | 2018-12-19 11:12:25 +0100 |
commit | 73ec2ba74ec735bb5e989cab0336ecca24a93701 (patch) | |
tree | e0812e88088a4dd2acc94bbc6ea57b3cf06b8a75 /searx | |
parent | 442772a6c5011f5dfd1e9d651d935b179cd14568 (diff) | |
download | searxng-73ec2ba74ec735bb5e989cab0336ecca24a93701.tar.gz searxng-73ec2ba74ec735bb5e989cab0336ecca24a93701.zip |
Update bing image engine with new image json format
Diffstat (limited to 'searx')
-rw-r--r-- | searx/engines/bing_images.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/searx/engines/bing_images.py b/searx/engines/bing_images.py index 66e14c01f..876011f1d 100644 --- a/searx/engines/bing_images.py +++ b/searx/engines/bing_images.py @@ -88,9 +88,7 @@ def response(resp): url = json_data.get('purl') img_src = json_data.get('murl') - - thumb_json_data = loads(_quote_keys_regex.sub(r'\1"\2": \3', link.attrib.get('mad'))) - thumbnail = thumb_json_data.get('turl') + thumbnail = json_data.get('turl') # append result results.append({'template': 'images.html', |