Skip to content

The Free Software Media System - Server Backend & API

Update MediaBrowser.Providers/MediaInfo/AudioFileProber.cs

GinoGinocchiode91a213a109
diff --git a/MediaBrowser.Providers/MediaInfo/AudioFileProber.cs b/MediaBrowser.Providers/MediaInfo/AudioFileProber.cs
index dd3cecc52d..986852f5ad 100644
--- a/MediaBrowser.Providers/MediaInfo/AudioFileProber.cs
+++ b/MediaBrowser.Providers/MediaInfo/AudioFileProber.cs
@@ -259,8 +259,8 @@ namespace MediaBrowser.Providers.MediaInfo
}
_libraryManager.UpdatePeople(audio, people);
- audio.Artists = audio.Artists != null ? audio.Artists : performers;
- audio.AlbumArtists = audio.AlbumArtists != null ? audio.AlbumArtists : albumArtists;
+ audio.Artists ??= performers;
+ audio.AlbumArtists ??= albumArtists;
}
audio.Name = string.IsNullOrEmpty(audio.Name) ? tags.Title : audio.Name;