瀏覽代碼

fix: fallback to artist if album artist not provided

Cody Robibero 1 年之前
父節點
當前提交
d402005d32
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6 0
      MediaBrowser.Providers/MediaInfo/AudioFileProber.cs

+ 6 - 0
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;