api/youtube: don't retrieve the player as cobalt doesn't use it

we don't decipher anything lol
This commit is contained in:
wukko 2024-12-10 17:30:32 +06:00
parent e1b84e7472
commit 4b8b0a0e9e
No known key found for this signature in database
GPG key ID: 3E30B3F26C7B4AA2

View file

@ -68,7 +68,8 @@ const cloneInnertube = async (customFetch) => {
const shouldRefreshPlayer = lastRefreshedAt + PLAYER_REFRESH_PERIOD < new Date();
if (!innertube || shouldRefreshPlayer) {
innertube = await Innertube.create({
fetch: customFetch
fetch: customFetch,
retrieve_player: false,
});
lastRefreshedAt = +new Date();
}