瀏覽代碼

fix folders affecting album resolver

Luke Pulverenti 8 年之前
父節點
當前提交
45da5c64b1
共有 1 個文件被更改,包括 7 次插入5 次删除
  1. 7 5
      Emby.Server.Implementations/Library/Resolvers/Audio/MusicAlbumResolver.cs

+ 7 - 5
Emby.Server.Implementations/Library/Resolvers/Audio/MusicAlbumResolver.cs

@@ -142,12 +142,14 @@ namespace Emby.Server.Implementations.Library.Resolvers.Audio
                         }
                     }
                 }
-
-                var fullName = fileSystemInfo.FullName;
-
-                if (libraryManager.IsAudioFile(fullName, libraryOptions))
+                else
                 {
-                    return true;
+                    var fullName = fileSystemInfo.FullName;
+
+                    if (libraryManager.IsAudioFile(fullName, libraryOptions))
+                    {
+                        return true;
+                    }
                 }
             }