mirror of
https://github.com/navidrome/navidrome.git
synced 2026-11-03 00:47:48 +01:00
Merge f0417bd9e8 into 52135913d4
This commit is contained in:
commit
1fa1198c33
1 changed files with 3 additions and 0 deletions
|
|
@ -233,6 +233,9 @@ func childFromMediaFile(ctx context.Context, mf model.MediaFile) responses.Child
|
|||
child.Created = new(mediaFileCreatedAt(mf))
|
||||
child.AlbumId = mf.AlbumID
|
||||
child.ArtistId = mf.ArtistID
|
||||
if child.ArtistId == "" {
|
||||
child.ArtistId = mf.AlbumArtistID
|
||||
}
|
||||
child.Type = "music"
|
||||
child.PlayCount = mf.PlayCount
|
||||
if mf.Starred {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue