public override void ResolveEntity(IMediaLocation location,
                                           out BaseItemFactory factory,
                                           out IEnumerable <InitializationParameter> setup)
        {
            factory = null;
            setup   = null;

            if (location is IFolderMediaLocation && !MusicHelper.IsHidden(location.Path) && MusicHelper.IsArtistAlbumFolder(location.Path))
            {
                factory = BaseItemFactory <ArtistAlbum> .Instance;
            }
        }
Esempio n. 2
0
        public override void ResolveEntity(IMediaLocation location,
                                           out BaseItemFactory factory,
                                           out IEnumerable <InitializationParameter> setup)
        {
            factory = null;
            setup   = null;

            var folderLocation = location as IFolderMediaLocation;

            if (folderLocation != null && !MusicHelper.IsHidden(folderLocation.Path))
            {
                if (MusicHelper.IsArtistFolder(location))
                {
                    factory = BaseItemFactory <Artist> .Instance;
                }
            }
        }