+ }
+
+ result = client.request(
+ self.WIKIDATA_IMAGE_QUERY.format(
+ urllib.parse.quote(image.title)
+ )
+ )
+
+ result_data = next(iter(result['query']['pages'].values()))['imageinfo'][0]
+ image_data['thumburl'] = result_data['thumburl']
+ image_data['thumbresolution'] = [
+ result_data['thumbwidth'],
+ result_data['thumbheight']
+ ]
+ if 'responsiveUrls' in result_data:
+ image_data['responsiveUrls'] = result_data['responsiveUrls']
+
+ image_data_list.append(image_data)
+
+ self.images = json.dumps(image_data_list)