mirror of
https://github.com/navidrome/navidrome.git
synced 2026-11-19 15:23:36 +00:00
* fix(jellyfin): list the user's libraries at the /Items user root An unfiltered, non-recursive /Items query with no ParentId is answered by Jellyfin with the user's libraries (the user root folder's children), not their contents. Navidrome defaulted to albums there, so Symfonium found no music library and synced nothing. Fixes #6199 Signed-off-by: zapisanchez <zapisanchez@gmail.com> * fix(jellyfin): page the user-root /Items libraries by StartIndex and Limit * fix(jellyfin): sort the user-root /Items libraries by SortBy and SortOrder before paging * refactor(jellyfin): simplify user-root sorting and filter detection Share the first-SortOrder rule between applySort and sortViews through a new isDescending helper, and make sortViews compare string keys instead of building comparator closures. hasFilters now compares itemFilters to its zero value, so a filter added there later also counts at the user root. Read the Recursive param once, fix the paginate comment that said it only served the multi-type path, and cut comments that restated the code. The user-root specs share one library fixture and one request helper. --------- Signed-off-by: zapisanchez <zapisanchez@gmail.com> Co-authored-by: Deluan <deluan@navidrome.org>