diff --git a/templates/player.html b/templates/player.html index 8bc8e03..17d0c26 100755 --- a/templates/player.html +++ b/templates/player.html @@ -479,12 +479,12 @@ function playNext() { iframe.style.width = `100vw`; iframe.style.height = `100vh`; iframe.style.transform = `translate(-50%, -50%)`; - playerTimer = setTimeout(playNext, interval); + if (!stayOnFirst) playerTimer = setTimeout(playNext, interval); } else { // Bild (jpg/png) img.style.display = "block"; img.src = src; - playerTimer = setTimeout(playNext, interval); + if (!stayOnFirst) playerTimer = setTimeout(playNext, interval); } } @@ -496,7 +496,7 @@ async function checkForUpdates() { const res = await fetch(`/playlist/${site}/${screen}/hash`, { cache: "no-store" }); const hash = await res.text(); if (lastHash && lastHash !== hash) { - location.reload(); + location.reload(true); } lastHash = hash; } catch (e) {