From fd76a5193364f60cdcd4bfc988292a1f328f750d Mon Sep 17 00:00:00 2001 From: Emilien Devos <4016501+unixfox@users.noreply.github.com> Date: Tue, 24 Dec 2024 23:19:29 +0100 Subject: [PATCH] true to yes and false to no --- src/lib/helpers/youtubePlayerHandling.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/lib/helpers/youtubePlayerHandling.ts b/src/lib/helpers/youtubePlayerHandling.ts index c91a8f9..4d7cf01 100644 --- a/src/lib/helpers/youtubePlayerHandling.ts +++ b/src/lib/helpers/youtubePlayerHandling.ts @@ -77,10 +77,10 @@ export const youtubePlayerParsing = async ( delete videoData.streamingData.formats[index] .signatureCipher; } - if (videoData.streamingData.formats[index].url.includes("alr=true")) { - videoData.streamingData.formats[index].url.replace("alr=true", "alr=false"); + if (videoData.streamingData.formats[index].url.includes("alr=yes")) { + videoData.streamingData.formats[index].url.replace("alr=yes", "alr=no"); } else { - videoData.streamingData.formats[index].url += "&alr=false"; + videoData.streamingData.formats[index].url += "&alr=no"; } } for ( @@ -101,10 +101,10 @@ export const youtubePlayerParsing = async ( delete videoData.streamingData.adaptiveFormats[index] .signatureCipher; } - if (videoData.streamingData.adaptiveFormats[index].url.includes("alr=true")) { - videoData.streamingData.adaptiveFormats[index].url.replace("alr=true", "alr=false"); + if (videoData.streamingData.adaptiveFormats[index].url.includes("alr=yes")) { + videoData.streamingData.adaptiveFormats[index].url.replace("alr=yes", "alr=no"); } else { - videoData.streamingData.adaptiveFormats[index].url += "&alr=false"; + videoData.streamingData.adaptiveFormats[index].url += "&alr=no"; } } }