jellyfin/MediaBrowser.Server.Implementations/Photos/PhotoAlbumImageProvider.cs

28 lines
959 B
C#
Raw Normal View History

using MediaBrowser.Common.Configuration;
using MediaBrowser.Common.IO;
2015-04-08 14:38:02 +00:00
using MediaBrowser.Controller.Drawing;
2014-10-29 22:01:02 +00:00
using MediaBrowser.Controller.Entities;
using MediaBrowser.Controller.Providers;
2014-08-12 02:59:51 +00:00
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
2014-10-20 03:04:45 +00:00
namespace MediaBrowser.Server.Implementations.Photos
2014-08-12 02:59:51 +00:00
{
2015-05-01 18:37:01 +00:00
public class PhotoAlbumImageProvider : BaseDynamicImageProvider<PhotoAlbum>
{
public PhotoAlbumImageProvider(IFileSystem fileSystem, IProviderManager providerManager, IApplicationPaths applicationPaths, IImageProcessor imageProcessor)
: base(fileSystem, providerManager, applicationPaths, imageProcessor)
{
}
2014-10-20 03:04:45 +00:00
2015-05-01 18:37:01 +00:00
protected override Task<List<BaseItem>> GetItemsWithImages(IHasImages item)
{
var photoAlbum = (PhotoAlbum)item;
var items = GetFinalItems(photoAlbum.Children.ToList());
2014-10-20 03:04:45 +00:00
2015-05-01 18:37:01 +00:00
return Task.FromResult(items);
}
}
2014-08-12 02:59:51 +00:00
}