Version 1.3.1-rc2 - Correctif sur Stream
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "chopin-backend",
|
||||
"version": "1.3.0",
|
||||
"version": "1.3.1",
|
||||
"description": "Discord Bot for music - Fetching everywhere !",
|
||||
"main": "src/main.js",
|
||||
"nodemonConfig": {
|
||||
|
@@ -6,10 +6,8 @@ const ffmpeg = require('fluent-ffmpeg')
|
||||
|
||||
async function getStream(song) {
|
||||
try {
|
||||
|
||||
return song.url;
|
||||
|
||||
|
||||
const stream = await fetch(song.url).then(res => res.body);
|
||||
return stream;
|
||||
} catch(e) {
|
||||
clog.error("Erreur lors de la lecture de la musique : " + song.title)
|
||||
clog.error(e)
|
||||
|
Reference in New Issue
Block a user