mirror of
https://github.com/navidrome/navidrome.git
synced 2025-05-07 13:51:10 +03:00
subsonic-api: fallback to AlbumArtistId when child does not have ArtistId
This commit is contained in:
parent
32d2d7c15b
commit
f0417bd9e8
@ -156,6 +156,9 @@ func childFromMediaFile(ctx context.Context, mf model.MediaFile) responses.Child
|
||||
child.Created = &mf.CreatedAt
|
||||
child.AlbumId = mf.AlbumID
|
||||
child.ArtistId = mf.ArtistID
|
||||
if child.ArtistId == "" {
|
||||
child.ArtistId = mf.AlbumArtistID
|
||||
}
|
||||
child.Type = "music"
|
||||
child.PlayCount = mf.PlayCount
|
||||
if mf.PlayCount > 0 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user