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: Make sure that Jellyfin playlists are sorted and paginated #1847

Merged
merged 1 commit into from
Jan 9, 2025

Conversation

Jc2k
Copy link
Contributor

@Jc2k Jc2k commented Jan 9, 2025

We were using the wrong endpoint for playlists so they were unsorted. We also need to use the order that they are returned in, rather than any index from the track object itself.

This also fixes pagination for that API endpoint.

@Jc2k
Copy link
Contributor Author

Jc2k commented Jan 9, 2025

Not certain but this may help with music-assistant/support#3278 as it is using the correct interface for fetching playlist tracks. Whilst the old way "worked" (albeit unsorted) its possible its a fluke of the specific data in my Jellyfin instance. Using a playlist specific endpoint may account for whatever data difference this is.

@Jc2k Jc2k added bugfix python Pull requests that update Python code labels Jan 9, 2025
@marcelveldt marcelveldt merged commit dd58fa5 into music-assistant:dev Jan 9, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix python Pull requests that update Python code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants