Update MediaBrowser.Providers/MediaInfo/AudioFileProber.cs

Co-authored-by: Cody Robibero <cody@robibe.ro>
This commit is contained in:
GinoGinocchio 2023-07-10 17:07:30 -05:00 committed by Brian Howe
parent de91a213a1
commit ddcd29f17e

View File

@ -264,9 +264,9 @@ namespace MediaBrowser.Providers.MediaInfo
}
audio.Name = string.IsNullOrEmpty(audio.Name) ? tags.Title : audio.Name;
audio.Album = audio.Album != null ? audio.Album : tags.Album;
audio.IndexNumber = audio.IndexNumber != null ? audio.IndexNumber : Convert.ToInt32(tags.Track);
audio.ParentIndexNumber = audio.ParentIndexNumber != null ? audio.ParentIndexNumber : Convert.ToInt32(tags.Disc);
audio.Album ??= tags.Album;
audio.IndexNumber ??= Convert.ToInt32(tags.Track);
audio.ParentIndexNumber ??= Convert.ToInt32(tags.Disc);
if (tags.Year != 0)
{