Add userRating to Subsonic Album/Artist responses. Closes #1486

This commit is contained in:
Deluan
2021-11-23 21:50:57 -05:00
parent 6a1f9678b1
commit 30d3f1eda0
3 changed files with 18 additions and 13 deletions
+1
View File
@@ -100,6 +100,7 @@ func toArtistID3(ctx context.Context, a model.Artist) responses.ArtistID3 {
Name: a.Name,
AlbumCount: a.AlbumCount,
ArtistImageUrl: a.ArtistImageUrl(),
UserRating: a.Rating,
}
if a.Starred {
artist.Starred = &a.StarredAt