Notif + Update YT DLP

This commit is contained in:
MasterAcnolo
2025-07-20 15:27:40 +02:00
parent df02acb97f
commit d03e3bc7e5
3 changed files with 3 additions and 2 deletions

View File

@@ -22,7 +22,8 @@ const { Notification } = require("electron");
const logger = require("../logger").logger;
// Path vers le fichier exécutable yt-dlp (outil tiers pour le téléchargement)
const ytDlpPath = path.join(__dirname, '../../yt-dlp.exe');
// const ytDlpPath = path.join(__dirname, '../../yt-dlp.exe');
const ytDlpPath = path.join(__dirname, '../../yt-dlp 2025.06.30.exe');
router.post("/", (req, res) => {
try {

View File

@@ -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, "../../yt-dlp.exe");
const ytDlpPath = path.join(__dirname, '../../yt-dlp 2025.06.30.exe');
// Vérification que yt-dlp.exe existe bien au lancement du module
if (!fs.existsSync(ytDlpPath)) {