diff --git a/server/server.js b/server/server.js index 69b42ef..39f7e28 100644 --- a/server/server.js +++ b/server/server.js @@ -734,6 +734,10 @@ function appendYoutubeLog(job, line) { function launchYoutubeJob(job) { const binary = getYtDlpBinary(); + const jsRuntime = + process.env.YT_DLP_JS_RUNTIME || + process.env.NODE_BIN || + "/usr/bin/node"; const args = [ "-f", "bv+ba/b", @@ -741,6 +745,8 @@ function launchYoutubeJob(job) { "--convert-thumbnails", "jpg", "--write-info-json", + "--js-runtime", + jsRuntime, job.url ]; job.debug = { binary, args, logs: [] };