瀏覽代碼

handle empty album artists

Luke Pulverenti 9 年之前
父節點
當前提交
425948359a
共有 1 個文件被更改,包括 5 次插入0 次删除
  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");