2021-10-06 09:30:45 +00:00
|
|
|
#pragma warning disable CS1591
|
|
|
|
|
2024-05-17 17:51:50 +00:00
|
|
|
using System.Collections.Generic;
|
|
|
|
using System.Linq;
|
2021-10-06 09:30:45 +00:00
|
|
|
using MediaBrowser.Common.Configuration;
|
|
|
|
using MediaBrowser.Controller.Drawing;
|
2024-05-17 17:51:50 +00:00
|
|
|
using MediaBrowser.Controller.Entities;
|
2021-10-06 09:30:45 +00:00
|
|
|
using MediaBrowser.Controller.Entities.Audio;
|
|
|
|
using MediaBrowser.Controller.Library;
|
|
|
|
using MediaBrowser.Controller.Providers;
|
|
|
|
using MediaBrowser.Model.IO;
|
|
|
|
|
|
|
|
namespace Emby.Server.Implementations.Images
|
|
|
|
{
|
|
|
|
public class MusicAlbumImageProvider : BaseFolderImageProvider<MusicAlbum>
|
|
|
|
{
|
|
|
|
public MusicAlbumImageProvider(IFileSystem fileSystem, IProviderManager providerManager, IApplicationPaths applicationPaths, IImageProcessor imageProcessor, ILibraryManager libraryManager)
|
|
|
|
: base(fileSystem, providerManager, applicationPaths, imageProcessor, libraryManager)
|
|
|
|
{
|
|
|
|
}
|
2024-05-17 17:51:50 +00:00
|
|
|
|
|
|
|
protected override IReadOnlyList<BaseItem> GetItemsWithImages(BaseItem item)
|
|
|
|
{
|
|
|
|
var items = base.GetItemsWithImages(item);
|
|
|
|
|
|
|
|
// Ignore any folders because they can have generated collages
|
|
|
|
return items.Where(i => i is not Folder).ToList();
|
|
|
|
}
|
2021-10-06 09:30:45 +00:00
|
|
|
}
|
|
|
|
}
|