icloud-photos-downloader / icloud_photos_downloader

A command-line tool to download photos from iCloud
MIT License
6.25k stars 528 forks source link

Delete downloaded photo when removed from album? #701

Open ibrewster opened 9 months ago

ibrewster commented 9 months ago

Summary

When downloading a single album using the --album flag combined with --auto-delete, all photos in the album are downloaded, as expected. However, photos that were removed from the album (but not deleted from the library) are not removed. As such, there appears to be no way to keep an "album" folder in-sync with the cloud album.

Context

I have a home-made digital photo frame that I am hoping to populate with photos by simply adding/removing them to/from a Photos album on my local computer. This tool looks like it will work well when adding photos, but not when removing them from the album.

AndreyNikiforov commented 7 months ago

--auto-delete feature uses Recently Deleted album to know which images can be removed from your local collection. Since removing photo from album is not actually deleting photo, it is not tracked.

To support removing from album, we would need to compare content between your local and remove albums and they delete anything locally that is not on remote. Kinda synchronize by content, rather than by change records. That maybe a new feature, although quite distractive.