|
|
|
@ -9,18 +9,19 @@ using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace MediaBrowser.Server.Implementations.Photos
|
|
|
|
|
{
|
|
|
|
|
//public class PhotoAlbumImageProvider : BaseDynamicImageProvider<PhotoAlbum>
|
|
|
|
|
//{
|
|
|
|
|
// public PhotoAlbumImageProvider(IFileSystem fileSystem, IProviderManager providerManager, IApplicationPaths applicationPaths, IImageProcessor imageProcessor) : base(fileSystem, providerManager, applicationPaths, imageProcessor)
|
|
|
|
|
// {
|
|
|
|
|
// }
|
|
|
|
|
public class PhotoAlbumImageProvider : BaseDynamicImageProvider<PhotoAlbum>
|
|
|
|
|
{
|
|
|
|
|
public PhotoAlbumImageProvider(IFileSystem fileSystem, IProviderManager providerManager, IApplicationPaths applicationPaths, IImageProcessor imageProcessor)
|
|
|
|
|
: base(fileSystem, providerManager, applicationPaths, imageProcessor)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// protected override Task<List<BaseItem>> GetItemsWithImages(IHasImages item)
|
|
|
|
|
// {
|
|
|
|
|
// var photoAlbum = (PhotoAlbum)item;
|
|
|
|
|
// var items = GetFinalItems(photoAlbum.Children.ToList());
|
|
|
|
|
protected override Task<List<BaseItem>> GetItemsWithImages(IHasImages item)
|
|
|
|
|
{
|
|
|
|
|
var photoAlbum = (PhotoAlbum)item;
|
|
|
|
|
var items = GetFinalItems(photoAlbum.Children.ToList());
|
|
|
|
|
|
|
|
|
|
// return Task.FromResult(items);
|
|
|
|
|
// }
|
|
|
|
|
//}
|
|
|
|
|
return Task.FromResult(items);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|