Skip to content

I'll get this error #1206

Closed Answered by ArmoMan
AiDarkEzio asked this question in Q&A
Discussion options

You must be logged in to vote

I got the same error. In node_modules/ytdl-core/lib/sig.js file, you can comment out: const nTransformScript = functions.length > 1 ? new vm.Script(functions[1]) : null; and you can delete nTransformSctipt from: exports.setDownloadURL(format, decipherScript, nTransformScript);

It might affect some features, but you will not get an error.

Heres is the full edit of what I did:
exports.decipherFormats = async(formats, html5player, options) => {
let decipheredFormats = {};
let functions = await exports.getFunctions(html5player, options);
const decipherScript = functions.length ? new vm.Script(functions[0]) : null;
// const nTransformScript = functions.length > 1 ? new vm.Script(functions[…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by AiDarkEzio
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants