| | 1 | | #pragma warning disable CS1591 |
| | 2 | |
|
| | 3 | | using MediaBrowser.Common.Configuration; |
| | 4 | | using MediaBrowser.Controller.Drawing; |
| | 5 | | using MediaBrowser.Controller.Entities; |
| | 6 | | using MediaBrowser.Controller.Entities.Audio; |
| | 7 | | using MediaBrowser.Controller.Library; |
| | 8 | | using MediaBrowser.Controller.Providers; |
| | 9 | | using MediaBrowser.Model.IO; |
| | 10 | |
|
| | 11 | | namespace Emby.Server.Implementations.Images |
| | 12 | | { |
| | 13 | | public class FolderImageProvider : BaseFolderImageProvider<Folder> |
| | 14 | | { |
| | 15 | | public FolderImageProvider(IFileSystem fileSystem, IProviderManager providerManager, IApplicationPaths applicati |
| 21 | 16 | | : base(fileSystem, providerManager, applicationPaths, imageProcessor, libraryManager) |
| | 17 | | { |
| 21 | 18 | | } |
| | 19 | |
|
| | 20 | | protected override bool Supports(BaseItem item) |
| | 21 | | { |
| 47 | 22 | | if (item is PhotoAlbum || item is MusicAlbum) |
| | 23 | | { |
| 0 | 24 | | return false; |
| | 25 | | } |
| | 26 | |
|
| 47 | 27 | | if (item is Folder && item.IsTopParent) |
| | 28 | | { |
| 0 | 29 | | return false; |
| | 30 | | } |
| | 31 | |
|
| 47 | 32 | | return true; |
| | 33 | | } |
| | 34 | | } |
| | 35 | | } |