diff --git a/src/pregmod/FCTV/FCTV.js b/src/pregmod/FCTV/FCTV.js index a0218cc70e95a843b3eca02de1e9c472147931aa..4cac2736db8a45f15af416e10e2b2c859679c0a4 100644 --- a/src/pregmod/FCTV/FCTV.js +++ b/src/pregmod/FCTV/FCTV.js @@ -381,7 +381,7 @@ globalThis.FCTVdisplay = function({ usedRemote = 0, seeAll = 0 } = {}) { const watchedEntireSeason = Math.trunc(viewedCount / availableEp); // we went through 3 times fully epToShow = viewedCount - (watchedEntireSeason * availableEp); // 10 - 3 seasons (9) is 1. So our last epiode was the first, 0 in the array. And 1 is the next ep! } else { // We have seen all the episodes, return a random one - epToShow = jsRandom(0, availableEp); + epToShow = jsRandom(0, availableEp-1); } FCTV.incrementChannel(sel); console.log(channel, epToShow);