mirror of
https://github.com/navidrome/navidrome.git
synced 2026-05-03 06:51:16 +00:00
Merge f0417bd9e83c65a948df3d22e757513ea8c76045 into 44e63596a08c83471eaa56b132762267899af44a
This commit is contained in:
commit
1146cfe0af
@ -220,6 +220,9 @@ func childFromMediaFile(ctx context.Context, mf model.MediaFile) responses.Child
|
|||||||
child.Created = P(mf.BirthTime)
|
child.Created = P(mf.BirthTime)
|
||||||
child.AlbumId = mf.AlbumID
|
child.AlbumId = mf.AlbumID
|
||||||
child.ArtistId = mf.ArtistID
|
child.ArtistId = mf.ArtistID
|
||||||
|
if child.ArtistId == "" {
|
||||||
|
child.ArtistId = mf.AlbumArtistID
|
||||||
|
}
|
||||||
child.Type = "music"
|
child.Type = "music"
|
||||||
child.PlayCount = mf.PlayCount
|
child.PlayCount = mf.PlayCount
|
||||||
if mf.Starred {
|
if mf.Starred {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user