true to yes and false to no
This commit is contained in:
parent
f318c94bd8
commit
fd76a51933
1 changed files with 6 additions and 6 deletions
|
@ -77,10 +77,10 @@ export const youtubePlayerParsing = async (
|
||||||
delete videoData.streamingData.formats[index]
|
delete videoData.streamingData.formats[index]
|
||||||
.signatureCipher;
|
.signatureCipher;
|
||||||
}
|
}
|
||||||
if (videoData.streamingData.formats[index].url.includes("alr=true")) {
|
if (videoData.streamingData.formats[index].url.includes("alr=yes")) {
|
||||||
videoData.streamingData.formats[index].url.replace("alr=true", "alr=false");
|
videoData.streamingData.formats[index].url.replace("alr=yes", "alr=no");
|
||||||
} else {
|
} else {
|
||||||
videoData.streamingData.formats[index].url += "&alr=false";
|
videoData.streamingData.formats[index].url += "&alr=no";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for (
|
for (
|
||||||
|
@ -101,10 +101,10 @@ export const youtubePlayerParsing = async (
|
||||||
delete videoData.streamingData.adaptiveFormats[index]
|
delete videoData.streamingData.adaptiveFormats[index]
|
||||||
.signatureCipher;
|
.signatureCipher;
|
||||||
}
|
}
|
||||||
if (videoData.streamingData.adaptiveFormats[index].url.includes("alr=true")) {
|
if (videoData.streamingData.adaptiveFormats[index].url.includes("alr=yes")) {
|
||||||
videoData.streamingData.adaptiveFormats[index].url.replace("alr=true", "alr=false");
|
videoData.streamingData.adaptiveFormats[index].url.replace("alr=yes", "alr=no");
|
||||||
} else {
|
} else {
|
||||||
videoData.streamingData.adaptiveFormats[index].url += "&alr=false";
|
videoData.streamingData.adaptiveFormats[index].url += "&alr=no";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue