YT-DLP Maj Automatique

This commit is contained in:
MasterAcnolo
2025-09-27 11:10:34 +02:00
parent 7b6e48b09e
commit b92ffebdb4
4 changed files with 12 additions and 4 deletions

View File

@@ -23,7 +23,15 @@ const logger = require("../logger").logger;
// Path vers le fichier exécutable yt-dlp (outil tiers pour le téléchargement)
// const ytDlpPath = path.join(process.resourcesPath, '../../yt-dlp.exe');
const ytDlpPath = path.join(process.resourcesPath, 'yt-dlp 2025.09.23.exe');
const ytDlpPath = path.join(process.resourcesPath, 'yt-dlp.exe');
execFile(ytDlpPath, ["-U"], (err, stdout, stderr) => {
if (err) {
logger.error("Erreur update yt-dlp:", err);
return;
}
logger.info(`Update yt-dlp : ${stdout}`);
});
router.post("/", (req, res) => {
try {