Merge pull request #7221 from SenorSmartyPants/UserViewThumb

This commit is contained in:
Cody Robibero 2022-02-28 20:17:30 -07:00 committed by GitHub
commit fe99800bde
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 4 deletions

View File

@ -135,7 +135,7 @@ namespace Emby.Server.Implementations.Images
protected virtual IEnumerable<string> GetStripCollageImagePaths(BaseItem primaryItem, IEnumerable<BaseItem> items)
{
var useBackdrop = primaryItem is CollectionFolder;
var useBackdrop = primaryItem is CollectionFolder || primaryItem is UserView;
return items
.Select(i =>
{

View File

@ -84,16 +84,20 @@ namespace Emby.Server.Implementations.Images
}).GroupBy(x => x.Id)
.Select(x => x.First());
List<BaseItem> returnItems;
if (isUsingCollectionStrip)
{
return items
returnItems = items
.Where(i => i.HasImage(ImageType.Primary) || i.HasImage(ImageType.Thumb))
.ToList();
returnItems.Shuffle();
return returnItems;
}
return items
returnItems = items
.Where(i => i.HasImage(ImageType.Primary))
.ToList();
returnItems.Shuffle();
return returnItems;
}
protected override bool Supports(BaseItem item)