From 7f92f2119307add7446ca7a7295fa9971724e6c1 Mon Sep 17 00:00:00 2001 From: ashley Date: Sun, 28 Sep 2025 20:15:35 +0200 Subject: [PATCH] fix stuff + add stuff --- src/libpoketube/libpoketube-core.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/libpoketube/libpoketube-core.js b/src/libpoketube/libpoketube-core.js index 6ca13ee1..bbf6a7d9 100644 --- a/src/libpoketube/libpoketube-core.js +++ b/src/libpoketube/libpoketube-core.js @@ -190,14 +190,14 @@ class InnerTubePokeVidious { } }; - // --- New scheduling logic --- + // --- scheduling logic --- // Rotate which window // prefers fallback/primary every 2 hours using a custom sequence. // // Sequence: fallback, normal, fallback, normal, normal, fallback // each element = which API is preferred *for that 2-hour block*. // - // Within the chosen preference, the original 10-minute switching (minute % 20 >= 10) + // Within the chosen preference, the 10-minute switching (minute % 20 >= 10) // still applies, but which side corresponds to the inFallbackWindow is flipped // depending on the 2-hour preference. @@ -212,7 +212,7 @@ class InnerTubePokeVidious { const currentPreference = twoHourPattern[twoHourIndex]; // 'fallback' or 'normal' // 10-minute toggle windows (true when the 10-minute 'fallback' windows happen) - const inFallbackWindow = minute % 20 >= 10; // preserves original 10-minute switching + const inFallbackWindow = minute % 20 >= 10; // build the URLs const primaryUrl = `${this.config.invapi}/videos/${v}?hl=${contentlang}®ion=${contentregion}&h=${this.toBase64(Date.now())}`;