youtube: await decipher()s
Some checks failed
CodeQL / Analyze (javascript-typescript) (pull_request) Failing after 13s
Run service tests / test service functionality (pull_request) Successful in 23s
Run tests / check lockfile correctness (pull_request) Successful in 20s
Run tests / web sanity check (pull_request) Successful in 1m25s
Run tests / api sanity check (pull_request) Failing after 27s
Run service tests / test service: ${{ matrix.service }} (pull_request) Failing after 20s

they are async as of https://github.com/LuanRT/YouTube.js/pull/1047
This commit is contained in:
jj
2025-10-13 23:30:44 +00:00
parent 1dc0aa89df
commit 91989b8de1

View File

@@ -560,7 +560,7 @@ export default async function (o) {
}
if (!clientsWithNoCipher.includes(innertubeClient) && innertube) {
urls = audio.decipher(innertube.session.player);
urls = await audio.decipher(innertube.session.player);
}
let cover = `https://i.ytimg.com/vi/${o.id}/maxresdefault.jpg`;
@@ -607,8 +607,8 @@ export default async function (o) {
filenameAttributes.extension = o.container === "auto" ? codecList[codec].container : o.container;
if (!clientsWithNoCipher.includes(innertubeClient) && innertube) {
video = video.decipher(innertube.session.player);
audio = audio.decipher(innertube.session.player);
video = await video.decipher(innertube.session.player);
audio = await audio.decipher(innertube.session.player);
} else {
video = video.url;
audio = audio.url;