| | 1 | | #pragma warning disable CS1591 |
| | 2 | |
|
| | 3 | | using System.Collections.Generic; |
| | 4 | | using System.Linq; |
| | 5 | | using MediaBrowser.Common.Configuration; |
| | 6 | | using MediaBrowser.Controller.Drawing; |
| | 7 | | using MediaBrowser.Controller.Entities; |
| | 8 | | using MediaBrowser.Controller.Entities.Audio; |
| | 9 | | using MediaBrowser.Controller.Library; |
| | 10 | | using MediaBrowser.Controller.Providers; |
| | 11 | | using MediaBrowser.Model.IO; |
| | 12 | |
|
| | 13 | | namespace Emby.Server.Implementations.Images |
| | 14 | | { |
| | 15 | | public class MusicAlbumImageProvider : BaseFolderImageProvider<MusicAlbum> |
| | 16 | | { |
| | 17 | | public MusicAlbumImageProvider(IFileSystem fileSystem, IProviderManager providerManager, IApplicationPaths appli |
| 21 | 18 | | : base(fileSystem, providerManager, applicationPaths, imageProcessor, libraryManager) |
| | 19 | | { |
| 21 | 20 | | } |
| | 21 | |
|
| | 22 | | protected override IReadOnlyList<BaseItem> GetItemsWithImages(BaseItem item) |
| | 23 | | { |
| 0 | 24 | | var items = base.GetItemsWithImages(item); |
| | 25 | |
|
| | 26 | | // Ignore any folders because they can have generated collages |
| 0 | 27 | | return items.Where(i => i is not Folder).ToList(); |
| | 28 | | } |
| | 29 | | } |
| | 30 | | } |