Shuffle items with images
They were always returning in the same order so thumb would never change.
This commit is contained in:
parent
b15ab397c7
commit
5d9e1bfcea
|
@ -84,16 +84,20 @@ namespace Emby.Server.Implementations.Images
|
||||||
}).GroupBy(x => x.Id)
|
}).GroupBy(x => x.Id)
|
||||||
.Select(x => x.First());
|
.Select(x => x.First());
|
||||||
|
|
||||||
|
List<BaseItem> returnItems;
|
||||||
if (isUsingCollectionStrip)
|
if (isUsingCollectionStrip)
|
||||||
{
|
{
|
||||||
return items
|
returnItems = items
|
||||||
.Where(i => i.HasImage(ImageType.Primary) || i.HasImage(ImageType.Thumb))
|
.Where(i => i.HasImage(ImageType.Primary) || i.HasImage(ImageType.Thumb))
|
||||||
.ToList();
|
.ToList();
|
||||||
|
returnItems.Shuffle();
|
||||||
|
return returnItems;
|
||||||
}
|
}
|
||||||
|
returnItems = items
|
||||||
return items
|
|
||||||
.Where(i => i.HasImage(ImageType.Primary))
|
.Where(i => i.HasImage(ImageType.Primary))
|
||||||
.ToList();
|
.ToList();
|
||||||
|
returnItems.Shuffle();
|
||||||
|
return returnItems;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override bool Supports(BaseItem item)
|
protected override bool Supports(BaseItem item)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user