diff --git a/package.json b/package.json index 05fc2c1..a3f8fbd 100644 --- a/package.json +++ b/package.json @@ -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": { diff --git a/src/player/Method/Youtube.js b/src/player/Method/Youtube.js index d889afb..fa21cdc 100644 --- a/src/player/Method/Youtube.js +++ b/src/player/Method/Youtube.js @@ -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');