mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-01-20 01:58:18 +00:00
don't allow nested music artists
This commit is contained in:
@@ -33,6 +33,12 @@ namespace MediaBrowser.Server.Implementations.Library.Resolvers.Audio
|
||||
if (args.Parent == null) return null;
|
||||
if (args.Parent.IsRoot) return null;
|
||||
|
||||
// Don't allow nested artists
|
||||
if (args.Parent is MusicArtist)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// If we contain an album assume we are an artist folder
|
||||
return args.FileSystemChildren.Where(i => i.Attributes.HasFlag(FileAttributes.Directory)).Any(i => MusicAlbumResolver.IsMusicAlbum(i.FullName)) ? new MusicArtist() : null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user