Version 1.3.1-rc2 - Correctif sur Stream

This commit is contained in:
2025-10-06 23:41:15 +02:00
parent ccb73807c0
commit 5d10c258c8
2 changed files with 3 additions and 5 deletions

View File

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

View File

@@ -6,10 +6,8 @@ const ffmpeg = require('fluent-ffmpeg')
async function getStream(song) { async function getStream(song) {
try { try {
const stream = await fetch(song.url).then(res => res.body);
return song.url; return stream;
} catch(e) { } catch(e) {
clog.error("Erreur lors de la lecture de la musique : " + song.title) clog.error("Erreur lors de la lecture de la musique : " + song.title)
clog.error(e) clog.error(e)