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

Fix subsonic upload_playlist not properly removing existing entries #158

Merged
merged 1 commit into from
Jan 6, 2025

Conversation

phw
Copy link
Member

@phw phw commented Dec 23, 2024

The subsonic upload_playlist changes in #152 did not generate the removed indexes list correctly. Instead of the entries in the playlist it just counted the elements in the "playlist" structure, which is an object with various data about the playlist.

This change uses the songCount field to determine how many entries are in the playlist.

I tested this with subsonic, and now my weekly playlist is no longer growing every time it gets updated.

Copy link
Member

@mayhem mayhem left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@mayhem mayhem merged commit a0aac57 into metabrainz:main Jan 6, 2025
4 of 5 checks passed
@phw phw deleted the fix_subsonic_update_playlist branch January 6, 2025 17:53
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