correct decipher, instead not on IOS and ANDROID
This commit is contained in:
parent
3a2d6e0997
commit
c8cb9bcba9
1 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||
"",
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue