diff --git a/command-line/update.py b/command-line/update.py index 869d155..72b77c5 100644 --- a/command-line/update.py +++ b/command-line/update.py @@ -63,7 +63,7 @@ def download_media(html, images, wiki): # we select the first search result # (assuming that this is the image we are looking for) - image = data['query']['allimages'][0] + image = data['query']['allimages'][:1] # pick last item!!! # then we download the image image_url = image['url'] diff --git a/web-interface/update.py b/web-interface/update.py index e87a88c..7241306 100644 --- a/web-interface/update.py +++ b/web-interface/update.py @@ -64,7 +64,7 @@ def download_media(html, images, wiki): # we select the first search result # (assuming that this is the image we are looking for) - image = data['query']['allimages'][0] + image = data['query']['allimages'][:1] # !!! pick last image # then we download the image image_url = image['url']