mirror of
https://github.com/imputnet/cobalt.git
synced 2025-12-12 21:52:49 +00:00
youtube: await decipher()s
they are async as of https://github.com/LuanRT/YouTube.js/pull/1047
This commit is contained in:
parent
1dc0aa89df
commit
91989b8de1
@ -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;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user