Anglais Fetch Info.js + Removed Files Check

This commit is contained in:
MasterAcnolo
2025-11-19 18:24:50 +01:00
parent f8e3bc843d
commit 4e0fe29c20
2 changed files with 2 additions and 7 deletions

View File

@@ -15,7 +15,7 @@ async function fetchVideoInfo(url) {
body: new URLSearchParams({ url }), body: new URLSearchParams({ url }),
}); });
if (!res.ok) return { error: `Erreur Lors de la récupération des informations` }; if (!res.ok) return { error: `An Error occured when fetching info` };
const data = await res.json(); const data = await res.json();
if (!data) return { error: "Données manquantes" }; if (!data) return { error: "Données manquantes" };

View File

@@ -4,16 +4,11 @@ const path = require("path");
const { logger, logSessionStart, logSessionEnd } = require("./logger"); const { logger, logSessionStart, logSessionEnd } = require("./logger");
const config = require("../config"); const config = require("../config");
const { execFile } = require("child_process"); const { execFile } = require("child_process");
const { userYtDlp, ffmpegPath, denoPath} = require("./helpers/path"); const { userYtDlp } = require("./helpers/path");
const app = express(); const app = express();
logger.info("FFMPEG Path:", ffmpegPath);
logger.info("Deno Path:", denoPath);
logger.info("YT-DLP Path:", userYtDlp);
app.use(express.json()); app.use(express.json());
// Dossier de téléchargement // Dossier de téléchargement