correct decipher, instead not on IOS and ANDROID

This commit is contained in:
Émilien (perso) 2024-10-24 11:52:36 +02:00 committed by GitHub
parent 3a2d6e0997
commit c8cb9bcba9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -34,7 +34,7 @@ export const youtubePlayerParsing = async (
if (streamingData && videoData && videoData.streamingData) {
const ecatcherServiceTracking = videoData.responseContext?.serviceTrackingParams.find(o => o.service === 'ECATCHER');
const clientNameUsed = ecatcherServiceTracking?.params?.find(o => o.key === 'client.name');
if (clientNameUsed?.value.includes("IOS") || clientNameUsed?.value.includes("ANDROID")) {
if (!clientNameUsed?.value.includes("IOS") && !clientNameUsed?.value.includes("ANDROID")) {
for (const [index, format] of streamingData.formats.entries()) {
videoData.streamingData.formats[index].url = format.decipher(
innertubeClient.session.player,
@ -123,4 +123,4 @@ export const youtubeVideoInfo = (
innertubeClient.actions,
"",
);
}
}