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

Get Photo-Album within Folder #288

Open
Pommesdoktor opened this issue Jul 25, 2020 · 9 comments
Open

Get Photo-Album within Folder #288

Pommesdoktor opened this issue Jul 25, 2020 · 9 comments
Labels

Comments

@Pommesdoktor
Copy link

How can I access Photo Albums, that are with ICloud-Folders? Tried 'Folder/Albumname' and 'Folder\Albumname'. Did not work.

@Quentame
Copy link
Collaborator

Quentame commented Aug 5, 2020

Hello there !

It's written in the doc: https://github.com/picklepete/pyicloud#photo-library

Closing, tell me if the issue persists.

@Quentame Quentame closed this as completed Aug 5, 2020
@Pommesdoktor
Copy link
Author

Pommesdoktor commented Aug 7, 2020 via email

@Quentame Quentame reopened this Aug 7, 2020
@Quentame
Copy link
Collaborator

Quentame commented Aug 7, 2020

Have you tried api.photos.albums['My Albums']['2020']['Summer'] ?

@Pommesdoktor
Copy link
Author

Pommesdoktor commented Aug 7, 2020 via email

@ixs
Copy link
Contributor

ixs commented Aug 11, 2020

Turns out, subfolders are currently not supported in the code.

https://github.com/picklepete/pyicloud/blob/master/pyicloud/services/photos.py#L176 marks it neatly as a TODO item...

@Quentame
Copy link
Collaborator

Ups, haven't checked 😅

Actually do not have iCloud Photos in my account.

@noizwaves
Copy link

Hey, I actually just hit this today! After some snooping around at the traffic from iCloud Photos, I was able to enhance the code to distinguish between folders and albums, and then continue to traverse folders looking for more albums.

The changes are over on https://github.com/noizwaves/pyicloud/tree/albums-in-folders. If you'd like, I could polish it up into a PR.

@ixs
Copy link
Contributor

ixs commented Aug 15, 2020

@noizwaves Awesome work. @Quentame is on a vacation for the next days, so your change cannot be merged yet. But I think a PR would be pretty awesome.
If you need help polishing your change, I'm happy to help you.

@noizwaves
Copy link

OK, finally found some time and landed the PR #297

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

Successfully merging a pull request may close this issue.

4 participants