Skip to content

Commit

Permalink
Merge pull request ultralytics#9 from NicolasGrosjean/patch-4
Browse files Browse the repository at this point in the history
Manage API change
  • Loading branch information
Joeclinton1 authored Sep 26, 2021
2 parents 9a0008d + a8e28e2 commit 9070776
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion google_images_download/google_images_download.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ def _extract_data_pack_ajax(self, data):
return json.loads(lines[3])[0][2]

def _image_objects_from_pack(self, data):
image_objects = json.loads(data)[31][0][12][2]
image_objects = json.loads(data)[31][-1][12][2]
image_objects = [x for x in image_objects if x[0] == 1]
return image_objects

Expand Down

0 comments on commit 9070776

Please sign in to comment.