The Free Software Media System - Server Backend & API
Prevent MusicArtist creation for artist subfolders
Shadowghostcfd1db16387b
diff --git a/Emby.Server.Implementations/Library/Resolvers/Audio/MusicArtistResolver.cs b/Emby.Server.Implementations/Library/Resolvers/Audio/MusicArtistResolver.csindex 210ed0953a..b7c1724c07 100644--- a/Emby.Server.Implementations/Library/Resolvers/Audio/MusicArtistResolver.cs+++ b/Emby.Server.Implementations/Library/Resolvers/Audio/MusicArtistResolver.cs@@ -61,7 +61,7 @@ namespace Emby.Server.Implementations.Library.Resolvers.Audiovar isMusicMediaFolder = string.Equals(collectionType, CollectionType.Music, StringComparison.OrdinalIgnoreCase);- // If there's a collection type and it's not music, it can't be a series+ // If there's a collection type and it's not music, it can't be a music artistif (!isMusicMediaFolder){return null;@@ -87,6 +87,15 @@ namespace Emby.Server.Implementations.Library.Resolvers.Audiovar result = Parallel.ForEach(directories, (fileSystemInfo, state) =>{+ foreach (var subfolder in _namingOptions.ArtistSubfolders)+ {+ if (fileSystemInfo.Name.Equals(subfolder, StringComparison.OrdinalIgnoreCase))+ {+ // stop once we see a artist subfolder+ state.Stop();+ }+ }+if (albumResolver.IsMusicAlbum(fileSystemInfo.FullName, directoryService)){// stop once we see a music album