1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

update backdrops

This commit is contained in:
Luke Pulverenti 2016-12-02 15:45:11 -05:00
parent 7ce49ea1e8
commit 65ccdb73c7
3 changed files with 7 additions and 8 deletions

View file

@ -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();