You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
961 B
27 lines
961 B
using MediaBrowser.Common.Configuration;
|
|
using MediaBrowser.Common.IO;
|
|
using MediaBrowser.Controller.Drawing;
|
|
using MediaBrowser.Controller.Entities;
|
|
using MediaBrowser.Controller.Providers;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
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)
|
|
{
|
|
}
|
|
|
|
protected override Task<List<BaseItem>> GetItemsWithImages(IHasImages item)
|
|
{
|
|
var photoAlbum = (PhotoAlbum)item;
|
|
var items = GetFinalItems(photoAlbum.GetRecursiveChildren().ToList());
|
|
|
|
return Task.FromResult(items);
|
|
}
|
|
}
|
|
}
|