2021-05-20 19:28:18 +00:00
|
|
|
#nullable disable
|
|
|
|
|
2020-05-29 09:28:19 +00:00
|
|
|
#pragma warning disable CS1591
|
|
|
|
|
2019-01-13 19:23:38 +00:00
|
|
|
using MediaBrowser.Common.Configuration;
|
2017-10-21 16:39:52 +00:00
|
|
|
using MediaBrowser.Controller.Drawing;
|
|
|
|
using MediaBrowser.Controller.Entities;
|
2019-01-13 19:23:38 +00:00
|
|
|
using MediaBrowser.Controller.Entities.Audio;
|
|
|
|
using MediaBrowser.Controller.Library;
|
2017-10-21 16:39:52 +00:00
|
|
|
using MediaBrowser.Controller.Providers;
|
2019-01-13 19:23:38 +00:00
|
|
|
using MediaBrowser.Model.IO;
|
2017-10-21 16:39:52 +00:00
|
|
|
|
2019-12-14 06:27:03 +00:00
|
|
|
namespace Emby.Server.Implementations.Images
|
2017-10-21 16:39:52 +00:00
|
|
|
{
|
|
|
|
public class FolderImageProvider : BaseFolderImageProvider<Folder>
|
|
|
|
{
|
|
|
|
public FolderImageProvider(IFileSystem fileSystem, IProviderManager providerManager, IApplicationPaths applicationPaths, IImageProcessor imageProcessor, ILibraryManager libraryManager)
|
|
|
|
: base(fileSystem, providerManager, applicationPaths, imageProcessor, libraryManager)
|
|
|
|
{
|
|
|
|
}
|
2018-09-12 17:26:21 +00:00
|
|
|
|
|
|
|
protected override bool Supports(BaseItem item)
|
|
|
|
{
|
|
|
|
if (item is PhotoAlbum || item is MusicAlbum)
|
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2019-12-14 06:01:14 +00:00
|
|
|
if (item is Folder && item.IsTopParent)
|
2018-09-12 17:26:21 +00:00
|
|
|
{
|
2019-12-14 06:01:14 +00:00
|
|
|
return false;
|
2018-09-12 17:26:21 +00:00
|
|
|
}
|
2020-05-29 09:28:19 +00:00
|
|
|
|
2018-09-12 17:26:21 +00:00
|
|
|
return true;
|
|
|
|
}
|
2017-10-21 16:39:52 +00:00
|
|
|
}
|
|
|
|
}
|