Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support shared libraries #407

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

pneff
Copy link

@pneff pneff commented Nov 2, 2022

This supports the new iCloud shared libraries.

Example usage:

for library_name, library in api.photos.libraries.items():
    print(f'Library: {library_name}')
    for photo in library.all:
        print(f'{photo.asset_date} {photo} {photo.filename}')

pneff added 2 commits October 31, 2022 21:58
This currently returns a photo album for each shared library. This can then be
used to iterate over all the photos in that library. For example:

    for library_name, album in api.photos.libraries.items():
        print(f'Library: {library_name}')
        for photo in album:
            print(f'{photo.asset_date} {photo} {photo.filename}')
The libraries are now returned as a new object type (PhotoLibrary). That
provides access to albums. This way the icloud-photos-downloader can also use
the Recently Deleted special album to sync deletions.

The list of non-special albums is currently returned empty for the
shared libraries. This also tracks with the fact that the iCloud web app
currently doesn't provide access to albums in shared libraries.
@jo-21
Copy link

jo-21 commented Nov 9, 2022

If I use this PR, the albums dict does not contain anything besides the standard folders. I can see that _fetch_folders does not return anything. Is this only my problem or a general one?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants