jellyfin-server/Emby.Server.Implementations/Images/FolderImageProvider.cs

38 lines
1.1 KiB
C#
Raw Normal View History

#nullable disable
#pragma warning disable CS1591
using MediaBrowser.Common.Configuration;
2017-10-21 16:39:52 +00:00
using MediaBrowser.Controller.Drawing;
using MediaBrowser.Controller.Entities;
using MediaBrowser.Controller.Entities.Audio;
using MediaBrowser.Controller.Library;
2017-10-21 16:39:52 +00:00
using MediaBrowser.Controller.Providers;
using MediaBrowser.Model.IO;
2017-10-21 16:39:52 +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
}
2018-09-12 17:26:21 +00:00
return true;
}
2017-10-21 16:39:52 +00:00
}
}