Update bing image engine with new image json format

This commit is contained in:
Léo Bourrel
2018-12-19 11:12:25 +01:00
parent 442772a6c5
commit 73ec2ba74e
2 changed files with 4 additions and 6 deletions

View File

@@ -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',