mirror of
https://github.com/MasterAcnolo/Freedom-Loader.git
synced 2026-07-29 18:25:47 +02:00
12 lines
405 B
JavaScript
12 lines
405 B
JavaScript
const { execFile } = require("child_process");
|
|
const { logger } = require("../server/logger");
|
|
|
|
function updateYtDlp(ytDlpPath) {
|
|
logger.info("yt-dlp update check starting...");
|
|
execFile(ytDlpPath, ["-U"], (err, stdout) => {
|
|
if (err) logger.warn("yt-dlp update failed (continuing):", err.message);
|
|
else logger.info(`yt-dlp update: ${stdout.trim()}`);
|
|
});
|
|
}
|
|
|
|
module.exports = { updateYtDlp }; |