-
Notifications
You must be signed in to change notification settings - Fork 452
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
Adding support for photos shared library (iOS 16 feature) #395
Comments
Upgrade to IOS 16, share pictures with family, and look forward to adding support for shared library |
As part of my icloud-photos-sync project (that is currently in build up), I already started looking into this. My findings that I'm happy to share with the project that inspired the above the most:
POST'ing an empty object to those endpoints results in a list of available libraries. This means supporting shared library should not change most of the interactions besides the setup. I've created a Postman collection for all iCloud Photos related interactions: https://github.com/steilerDev/icloud-photos-sync/blob/dev/postman/iCloud.postman_collection.json |
I did an initial proof of concept addition implementing shared libraries in this branch: https://github.com/pneff/pyicloud/tree/shared-album-picklepete Example usage: 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}') This could easily be extended by adding a shortcut property |
Hi Patrice, thanks a lot for the PR. I tried it out, but using the SharedSync as Zone-ID, no folders/albums at all popped out. Do you have a clue why? Does the web-API from iCloud still does not support this? |
Hi @pneff, are you considering revisiting this improvement? |
Please consider this improvement; we've recently shifted all our photos into a shared format. This would be amazing for us. |
I wanted to see the postman file, but it no longer exists in the branch. Found it here: https://github.com/steilerDev/icloud-photos-sync/blob/23de04abeabfea93b4d25023d607e7e29be3e7a7/postman/iCloud.postman_collection.json For future reference :) |
I moved it into 'docs' -> https://github.com/steilerDev/icloud-photos-sync/blob/main/docs/postman/iCloud.postman_collection.json And some more documentation here: https://icps.steiler.dev/dev/api/ |
The request
I would like to be able to get photos for my shared library, my personal library, or from both. This would allow me to download the images to my server to back them up. Currently, only the personal library can be backed up.
Environment
pip show pyicloud
):python -V
):Checklist
Additional information
The text was updated successfully, but these errors were encountered: