feat(youtube): js çalışma zamanını yapılandırılabilir hale getir

This commit is contained in:
2025-12-14 15:19:12 +03:00
parent 05685c362b
commit de97b49dfa

View File

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