fix(subsonic): starred songs list only songs the listener can play (#8109)

getStarred and getStarred2 shared the web's liked-songs query, which keeps a
liked song whose file is missing and ignores the listener's quarantine.
Subsonic can't show a song as unplayable, so an app's Favorites offered
songs that failed to stream, or played the copy the listener hid. Subsonic
now reads ListPlayableLikedTrackRows, which filters both before the cap,
as #8020 did for albums, search and genres. The web's list is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-26 23:51:42 -05:00
co-authored by Claude Opus 5.5
parent f3997b657c
commit 408c4f9c24
4 changed files with 143 additions and 2 deletions
+2 -2
View File
@@ -184,8 +184,8 @@ func loadStarred(ctx context.Context, q *dbq.Queries, userID pgtype.UUID) ([]Son
albums := []AlbumRef{}
artists := []ArtistRef{}
trackRows, err := q.ListLikedTrackRows(ctx, dbq.ListLikedTrackRowsParams{
UserID: userID, Limit: cap, Offset: 0,
trackRows, err := q.ListPlayableLikedTrackRows(ctx, dbq.ListPlayableLikedTrackRowsParams{
UserID: userID, RowLimit: cap,
})
if err != nil {
return nil, nil, nil, err