Selaa lähdekoodia

Merge pull request #11357 from crobibero/album-artist

fix: fallback to artist if album artist not provided
Bond-009 1 vuosi sitten
vanhempi
sitoutus
014c9c3cdc
1 muutettua tiedostoa jossa 6 lisäystä ja 0 poistoa
  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;
                         audio.Artists = performers;
                     }
                     }
 
 
+                    if (albumArtists.Length == 0)
+                    {
+                        // Album artists not provided, fall back to performers (artists).
+                        albumArtists = performers;
+                    }
+
                     if (options.ReplaceAllMetadata && albumArtists.Length != 0)
                     if (options.ReplaceAllMetadata && albumArtists.Length != 0)
                     {
                     {
                         audio.AlbumArtists = albumArtists;
                         audio.AlbumArtists = albumArtists;