Update src/libpoketube/libpoketube-youtube-player.js
This commit is contained in:
parent
01b170b36e
commit
5c18239ca2
@ -205,7 +205,7 @@ class InnerTubePokeVidious {
|
|||||||
const hour = new Date().getHours();
|
const hour = new Date().getHours();
|
||||||
|
|
||||||
// pattern for each 2-hour block (6 blocks to cover 12 hours; repeats every 12 hours)
|
// pattern for each 2-hour block (6 blocks to cover 12 hours; repeats every 12 hours)
|
||||||
const pattern = ["normal", "fallback", "fallback", "normal", "normal", "normal"];
|
const pattern = ["normal", "fallback", "normal", "normal", "normal", "normal"];
|
||||||
|
|
||||||
// determine which 2-hour slot we're in (0..11 hours cover repeating pattern every 12 hours)
|
// determine which 2-hour slot we're in (0..11 hours cover repeating pattern every 12 hours)
|
||||||
const twoHourIndex = Math.floor(hour / 2) % pattern.length;
|
const twoHourIndex = Math.floor(hour / 2) % pattern.length;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user