mirror of
https://github.com/MasterAcnolo/Freedom-Loader.git
synced 2026-07-29 18:25:47 +02:00
Anglais Fetch Info.js + Removed Files Check
This commit is contained in:
@@ -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" };
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user