fix: decipher youtube parameters

This commit is contained in:
Daniel Wykerd 2023-04-26 10:03:33 +02:00
parent 3148e9b622
commit 0d868e0bd3
No known key found for this signature in database
GPG Key ID: 232F3D855CE6281E

View File

@ -91,8 +91,8 @@ export default async function(o) {
if (video && audio) return {
type: "render",
urls: [
video.url + '&cpn=' + info.cpn + '&__clen=' + video.content_length,
audio.url + '&cpn=' + info.cpn + '&__clen=' + audio.content_length
video.decipher(yt.session.player) + '&cpn=' + info.cpn + '&__clen=' + video.content_length,
audio.decipher(yt.session.player) + '&cpn=' + info.cpn + '&__clen=' + audio.content_length
],
filename: `youtube_${o.id}_${video.width}x${video.height}_${o.format}${isDubbed ? `_${o.dubLang}`:''}.${c[o.format].container}`
};