mirror of
https://github.com/MasterAcnolo/Freedom-Loader.git
synced 2026-07-29 18:25:47 +02:00
YT-DLP Maj Automatique
This commit is contained in:
@@ -50,8 +50,8 @@
|
||||
"to": "confirm-icon.png"
|
||||
},
|
||||
{
|
||||
"from": "ressources/yt-dlp 2025.09.23.exe",
|
||||
"to": "yt-dlp 2025.09.23.exe"
|
||||
"from": "ressources/yt-dlp.exe",
|
||||
"to": "yt-dlp.exe"
|
||||
},
|
||||
{
|
||||
"from": "ressources/ffmpeg.exe",
|
||||
|
||||
Binary file not shown.
@@ -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 {
|
||||
|
||||
@@ -24,7 +24,7 @@ const fs = require("fs");
|
||||
const { logger } = require("../logger"); // On récupère ton logger Winston
|
||||
|
||||
// Path absolu vers l'exécutable yt-dlp
|
||||
const ytDlpPath = path.join(__dirname, '../../ressources/yt-dlp 2025.09.23.exe');
|
||||
const ytDlpPath = path.join(__dirname, '../../ressources/yt-dlp.exe');
|
||||
|
||||
// Vérification que yt-dlp.exe existe bien au lancement du module
|
||||
if (!fs.existsSync(ytDlpPath)) {
|
||||
|
||||
Reference in New Issue
Block a user