Explorar el Código

handle empty album artists

Luke Pulverenti hace 9 años
padre
commit
425948359a
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  1. 5 0
      MediaBrowser.MediaEncoding/Probing/ProbeResultNormalizer.cs

+ 5 - 0
MediaBrowser.MediaEncoding/Probing/ProbeResultNormalizer.cs

@@ -791,6 +791,11 @@ namespace MediaBrowser.MediaEncoding.Probing
 
             }
 
+            if (audio.AlbumArtists.Count == 0)
+            {
+                audio.AlbumArtists = audio.Artists.Take(1).ToList();
+            }
+
             // Track number
             audio.IndexNumber = GetDictionaryDiscValue(tags, "track");