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

Fixes an issue where song sort order is 0 when adding to playlist #119

Merged
merged 2 commits into from
Mar 11, 2023

Conversation

timusus
Copy link
Owner

@timusus timusus commented Mar 10, 2023

This chang ensures that the sort order for a song added to a playlist starts at a minimum value of playlist.songCount. This prevents multiple entries with a sort order of '0' which can cause the true sort order to be lost.

This chang ensures that the sort order for a song added to a playlist starts at a minimum value of playlist.songCount. This prevents multiple entries with a sort order of '0' which can cause the true sort order to be lost.
@timusus
Copy link
Owner Author

timusus commented Mar 10, 2023

Supersedes #118, fixes #117

@daladim
Copy link
Contributor

daladim commented Mar 10, 2023

Thanks for this MR! Probably more efficient than #118 indeed :)

I haven't tested it yet (but I suppose you did, so that's fine for me!)

@timusus
Copy link
Owner Author

timusus commented Mar 11, 2023

@daladim I actually haven't tested this 😳

@daladim
Copy link
Contributor

daladim commented Mar 11, 2023

I've just successfully tested it, I think this can be safely merged into main. Thanks!

@timusus timusus merged commit d6e5243 into main Mar 11, 2023
@timusus timusus deleted the fix/playlist-sort-order branch March 11, 2023 10:51
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