Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion instagram_slideshow.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,8 @@ def download_any_new_instagram_photos(self):
try:
for photo in json_data["data"]:
image_url = photo["images"]["standard_resolution"]["url"]
photo_filename = image_url[image_url.rindex("/") + 1:]
image_link = photo["link"]
photo_filename = image_link.split('/')[4] + '.jpg'
if not os.path.isfile(self.LOCAL_PHOTO_DIRECTORY_PATH + photo_filename):
# save to disk any new photos that were not saved previously
new_photos_downloaded = True
Expand Down