mirror of
https://github.com/navidrome/navidrome.git
synced 2026-11-06 10:18:43 +01:00
* fix(subsonic): Sort songs by presence of lyrics for `getLyrics` The current implementation of `getLyrics` fetches any songs matching the artist and title. However, this misses a case where there may be multiple matches for the same artist/song, and one has lyrics while the other doesn't. Resolve this by adding a custom SQL dynamic column that checks for the presence of lyrics. * add options to selectMediaFile, update test * more robust testing of GetAllByLyrics * fix(subsonic): refactor GetAllByLyrics to GetAll with lyrics sorting Signed-off-by: Deluan <deluan@navidrome.org> * use has_lyrics, and properly support multiple sort parts * better handle complicated internal sorts * just use a simpler filter * add note to setSortMappings * remove custom sort mapping, improve test with different updatedat * refactor tests and mock Signed-off-by: Deluan <deluan@navidrome.org> * default order when not specified is `asc` Signed-off-by: Deluan <deluan@navidrome.org> --------- Signed-off-by: Deluan <deluan@navidrome.org> Co-authored-by: Deluan <deluan@navidrome.org> |
||
|---|---|---|
| .. | ||
| filter | ||
| responses | ||
| album_lists.go | ||
| album_lists_test.go | ||
| api.go | ||
| api_suite_test.go | ||
| api_test.go | ||
| bookmarks.go | ||
| browsing.go | ||
| helpers.go | ||
| helpers_test.go | ||
| jukebox.go | ||
| library_scanning.go | ||
| media_annotation.go | ||
| media_annotation_test.go | ||
| media_retrieval.go | ||
| media_retrieval_test.go | ||
| middlewares.go | ||
| middlewares_test.go | ||
| opensubsonic.go | ||
| opensubsonic_test.go | ||
| playlists.go | ||
| radio.go | ||
| searching.go | ||
| sharing.go | ||
| stream.go | ||
| system.go | ||
| users.go | ||
| users_test.go | ||