Skip to content

The Free Software Media System - Server Backend & API

fix: fallback to artist if album artist not provided

Cody Robiberod402005d328d
diff --git a/MediaBrowser.Providers/MediaInfo/AudioFileProber.cs b/MediaBrowser.Providers/MediaInfo/AudioFileProber.cs
index 67b84681de..bbc9af2277 100644
--- a/MediaBrowser.Providers/MediaInfo/AudioFileProber.cs
+++ b/MediaBrowser.Providers/MediaInfo/AudioFileProber.cs
@@ -338,6 +338,12 @@ namespace MediaBrowser.Providers.MediaInfo
audio.Artists = performers;
}
+ if (albumArtists.Length == 0)
+ {
+ // Album artists not provided, fall back to performers (artists).
+ albumArtists = performers;
+ }
+
if (options.ReplaceAllMetadata && albumArtists.Length != 0)
{
audio.AlbumArtists = albumArtists;