Version 1.4.1 - Ajout des cookies

This commit is contained in:
2025-12-07 10:35:49 +01:00
parent 38dfcad27e
commit fa869a11bf
2 changed files with 3 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "chopin-backend",
"version": "1.4.0",
"version": "1.4.1",
"description": "Discord Bot for music - Fetching everywhere !",
"main": "src/main.js",
"nodemonConfig": {

View File

@@ -1,7 +1,7 @@
const { LogType } = require('loguix');
const clog = new LogType("Youtube-Stream");
const { spawn } = require('child_process');
const { __glob } = require('../../utils/GlobalVars');
// Variable globale pour stocker le processus actif
let currentYtProcess = null;
@@ -88,7 +88,7 @@ async function getStream(song, seekTime = 0) {
}
// --- GESTION DES COOKIES ---
if (typeof __glob !== 'undefined' && __glob.COOKIES) {
if (__glob.COOKIES) {
// clog.log(`[YT-DLP] Cookies chargés.`);
ytArgs.push('--cookies', __glob.COOKIES);
ytArgs.push('--no-cache-dir');