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
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:
@@ -560,7 +560,7 @@ export default async function (o) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!clientsWithNoCipher.includes(innertubeClient) && innertube) {
|
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`;
|
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;
|
filenameAttributes.extension = o.container === "auto" ? codecList[codec].container : o.container;
|
||||||
|
|
||||||
if (!clientsWithNoCipher.includes(innertubeClient) && innertube) {
|
if (!clientsWithNoCipher.includes(innertubeClient) && innertube) {
|
||||||
video = video.decipher(innertube.session.player);
|
video = await video.decipher(innertube.session.player);
|
||||||
audio = audio.decipher(innertube.session.player);
|
audio = await audio.decipher(innertube.session.player);
|
||||||
} else {
|
} else {
|
||||||
video = video.url;
|
video = video.url;
|
||||||
audio = audio.url;
|
audio = audio.url;
|
||||||
|
|||||||
Reference in New Issue
Block a user