@ -2609,14 +2609,12 @@ namespace Emby.Server.Implementations.Library
} ) . OrderBy ( i = > i . Path ) ;
}
private static readonly string [ ] ExtrasSubfolderNames = new [ ] { "extras" , "specials" , "shorts" , "scenes" , "featurettes" , "behind the scenes" , "deleted scenes" , "interviews" } ;
public IEnumerable < Video > FindExtras ( BaseItem owner , List < FileSystemMetadata > fileSystemChildren , IDirectoryService directoryService )
{
var namingOptions = GetNamingOptions ( ) ;
var files = owner . IsInMixedFolder ? new List < FileSystemMetadata > ( ) : fileSystemChildren . Where ( i = > i . IsDirectory )
. Where ( i = > ExtrasSubf olderNames. Contains ( i . Name ? ? string . Empty , StringComparer . OrdinalIgnoreCase ) )
. Where ( i = > BaseItem. AllExtrasTypesF olderNames. Contains ( i . Name ? ? string . Empty , StringComparer . OrdinalIgnoreCase ) )
. SelectMany ( i = > _fileSystem . GetFiles ( i . FullName , _videoFileExtensions , false , false ) )
. ToList ( ) ;