mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update backdrops
This commit is contained in:
parent
7ce49ea1e8
commit
65ccdb73c7
3 changed files with 7 additions and 8 deletions
|
@ -252,13 +252,13 @@
|
|||
var rotationInterval;
|
||||
var currentRotatingImages = [];
|
||||
var currentRotationIndex = -1;
|
||||
function setBackdrops(items, enableRotation) {
|
||||
function setBackdrops(items, enableImageRotation) {
|
||||
|
||||
var images = getImageUrls(items);
|
||||
|
||||
if (images.length) {
|
||||
|
||||
startRotation(images, enableRotation);
|
||||
startRotation(images, enableImageRotation);
|
||||
|
||||
} else {
|
||||
clearBackdrop();
|
||||
|
@ -276,7 +276,7 @@
|
|||
currentRotatingImages = images;
|
||||
currentRotationIndex = -1;
|
||||
|
||||
if (images.length > 1 && enableRotation() && enableImageRotation !== false) {
|
||||
if (images.length > 1 && enableImageRotation !== false && enableRotation()) {
|
||||
rotationInterval = setInterval(onRotationInterval, 20000);
|
||||
}
|
||||
onRotationInterval();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue