Browse Source

handle empty album artists

Luke Pulverenti 9 years ago
parent
commit
425948359a
1 changed files with 5 additions and 0 deletions
  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");