Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 72d063d2 authored by Denis Wernert's avatar Denis Wernert
Browse files

Uses the raw url for the image result, rather than the full

size result.
parent cd7849ff
Loading
Loading
Loading
Loading
+8 −7
Original line number Diff line number Diff line
@@ -29,11 +29,12 @@ def response(resp):
    results = []
    json_data = loads(resp.text)

    if 'results' in json_data:
        for result in json_data['results']:
            results.append({'template': 'images.html',
                            'url': result['links']['html'],
                            'thumbnail_src': result['urls']['thumb'],
                        'img_src': result['urls']['full'],
                            'img_src': result['urls']['raw'],
                            'title': result['description'],
                            'content': ''})
    return results