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

Order of items in albums #31

Closed
wheleph opened this issue May 18, 2020 · 5 comments
Closed

Order of items in albums #31

wheleph opened this issue May 18, 2020 · 5 comments

Comments

@wheleph
Copy link

wheleph commented May 18, 2020

Uploaded photos are displayed in Google Photos album in some inconsistent order. They are definitely not ordered by date (which is the case when one uses native Google Photos UI to do it).

IMHO it would be natural to sort the photos by date in create albums. Maybe this is another limitation of Google Photos API? Then it's worth mentioning it in Wiki.

Affected version: 1.0.8

@ylexus
Copy link
Owner

ylexus commented May 18, 2020

It looks like this may actually be possible, if I separate the uploading and adding to the album stages. This is because once the item is uploaded, I can get hold of its metadata, and creation date/time is one of them. Let me experiment with the API.

ylexus pushed a commit that referenced this issue May 26, 2020
…reation time to mirror similar functionality during manual upload
ylexus pushed a commit that referenced this issue May 26, 2020
ylexus pushed a commit that referenced this issue May 27, 2020
@ylexus
Copy link
Owner

ylexus commented May 27, 2020

OK I've made it work. It's an emulation as the order in the album depends on the order of items in the API request. Google Photos does not re-order items uploaded via API. As a result, the order is not guaranteed, for example, when the upload is cancelled in an unlucky moment and re-tried. The probability of that is quite small though, so current implementation will have to do for now.

It'll be released in whatever version is coming next (planning on 1.1.0).

It may take time as my main laptop broke in the unlucky moment and fixing it in current situation will take 1-2 weeks.

@wheleph
Copy link
Author

wheleph commented May 27, 2020

Thank you very much!

This is an awesome piece of software by the way!

@ylexus ylexus closed this as completed May 27, 2020
@ylexus
Copy link
Owner

ylexus commented May 30, 2020

1.1.0 is released

@wheleph
Copy link
Author

wheleph commented Jun 9, 2020

I confirm that the order of items in albums is correct now.

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

No branches or pull requests

2 participants