Correcting according to the comments provided

pull/10691/head
GinoGinocchio 10 months ago committed by Brian Howe
parent d1cc56f78c
commit 01bbc7d117

@ -259,18 +259,13 @@ namespace MediaBrowser.Providers.MediaInfo
}
_libraryManager.UpdatePeople(audio, people);
// audio.Artists = performers;
audio.Artists = audio.Artists != null ? audio.Artists : performers;
// audio.AlbumArtists = albumArtists;
audio.AlbumArtists = audio.AlbumArtists != null ? audio.AlbumArtists : albumArtists;
}
audio.Name = string.IsNullOrEmpty(audio.Name.ToString()) ? tags.Title : audio.Name;
// audio.Album = tags.Album;
audio.Name = string.IsNullOrEmpty(audio.Name) ? tags.Title : audio.Name;
audio.Album = audio.Album != null ? audio.Album : tags.Album;
// audio.IndexNumber = Convert.ToInt32(tags.Track);
audio.IndexNumber = audio.IndexNumber != null ? audio.IndexNumber : Convert.ToInt32(tags.Track);
// audio.ParentIndexNumber = Convert.ToInt32(tags.Disc);
audio.ParentIndexNumber = audio.ParentIndexNumber != null ? audio.ParentIndexNumber : Convert.ToInt32(tags.Disc);
if (tags.Year != 0)

Loading…
Cancel
Save