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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user