diff --git a/README-FR.md b/README-FR.md index 3fb3968..da31189 100644 --- a/README-FR.md +++ b/README-FR.md @@ -2,11 +2,11 @@ -![Static Badge](https://img.shields.io/badge/Release-1.2.3-blue?style=flat&logo=Test) +![Static Badge](https://img.shields.io/badge/Release-1.2.4-blue?style=flat&logo=Test) -![Static Badge](https://img.shields.io/badge/Build-1.2.4--beta-yellow?style=flat&logo=Test) +![Static Badge](https://img.shields.io/badge/Build-1.2.5--beta-yellow?style=flat&logo=Test) > Ce projet a pour but de permettre le téléchargement de contenu Vidéo/Audio de manière gratuite, open source et libre. diff --git a/README.md b/README.md index 39e9f53..30ec1f9 100644 --- a/README.md +++ b/README.md @@ -2,11 +2,11 @@ -![Static Badge](https://img.shields.io/badge/Release-1.2.3-blue?style=flat&logo=Test) +![Static Badge](https://img.shields.io/badge/Release-1.2.4-blue?style=flat&logo=Test) -![Static Badge](https://img.shields.io/badge/Build-1.2.4--beta-yellow?style=flat&logo=Test) +![Static Badge](https://img.shields.io/badge/Build-1.2.5--beta-yellow?style=flat&logo=Test) > This project aims to enable free, open-source, and unrestricted downloading of Video/Audio content. diff --git a/main.js b/main.js index a948439..a835d2d 100644 --- a/main.js +++ b/main.js @@ -40,7 +40,7 @@ async function createWindow() { } mainWindow = new BrowserWindow({ - title: "Freedom Loader 1.2.3", // A Changer à chaque Version + title: "Freedom Loader 1.2.4", // A Changer à chaque Version width: 750, height: 800, minWidth: 750, diff --git a/package.json b/package.json index 91b3748..671b3a8 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "freedom-loader", "productName": "Freedom Loader", - "version": "1.2.3", + "version": "1.2.4", "author": "MasterAcnolo", "description": "Freedom Loader", "main": "main.js", @@ -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", diff --git a/ressources/yt-dlp 2025.08.27.exe b/ressources/yt-dlp 2025.08.27.exe deleted file mode 100644 index e342001..0000000 Binary files a/ressources/yt-dlp 2025.08.27.exe and /dev/null differ diff --git a/ressources/yt-dlp 2025.09.23.exe b/ressources/yt-dlp.exe similarity index 95% rename from ressources/yt-dlp 2025.09.23.exe rename to ressources/yt-dlp.exe index dbd201f..e5d9be2 100644 Binary files a/ressources/yt-dlp 2025.09.23.exe and b/ressources/yt-dlp.exe differ diff --git a/server/routes/download.js b/server/routes/download.js index 7a87032..04f93d9 100644 --- a/server/routes/download.js +++ b/server/routes/download.js @@ -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 { diff --git a/server/routes/info.js b/server/routes/info.js index e0641c9..a14fffb 100644 --- a/server/routes/info.js +++ b/server/routes/info.js @@ -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)) {