|
|
@ -29,16 +29,19 @@ namespace Emby.Server.Implementations.Images
|
|
|
|
|
|
|
|
|
|
|
|
protected override IReadOnlyList<BaseItem> GetItemsWithImages(BaseItem item)
|
|
|
|
protected override IReadOnlyList<BaseItem> GetItemsWithImages(BaseItem item)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return _libraryManager.GetItemList(new InternalItemsQuery
|
|
|
|
return Array.Empty<BaseItem>();
|
|
|
|
{
|
|
|
|
|
|
|
|
ArtistIds = new[] { item.Id },
|
|
|
|
// TODO enable this when BaseDynamicImageProvider objects are configurable
|
|
|
|
IncludeItemTypes = new[] { typeof(MusicAlbum).Name },
|
|
|
|
// return _libraryManager.GetItemList(new InternalItemsQuery
|
|
|
|
OrderBy = new[] { (ItemSortBy.Random, SortOrder.Ascending) },
|
|
|
|
// {
|
|
|
|
Limit = 4,
|
|
|
|
// ArtistIds = new[] { item.Id },
|
|
|
|
Recursive = true,
|
|
|
|
// IncludeItemTypes = new[] { typeof(MusicAlbum).Name },
|
|
|
|
ImageTypes = new[] { ImageType.Primary },
|
|
|
|
// OrderBy = new[] { (ItemSortBy.Random, SortOrder.Ascending) },
|
|
|
|
DtoOptions = new DtoOptions(false)
|
|
|
|
// Limit = 4,
|
|
|
|
});
|
|
|
|
// Recursive = true,
|
|
|
|
|
|
|
|
// ImageTypes = new[] { ImageType.Primary },
|
|
|
|
|
|
|
|
// DtoOptions = new DtoOptions(false)
|
|
|
|
|
|
|
|
// });
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|