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