I'll get this error #1206
-
evalmachine.:25
SyntaxError: Missing catch or finally after try |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I got the same error. In node_modules/ytdl-core/lib/sig.js file, you can comment out: It might affect some features, but you will not get an error. Heres is the full edit of what I did:
|
Beta Was this translation helpful? Give feedback.
-
closed and fixed with the latest release |
Beta Was this translation helpful? Give feedback.
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[…