diff --git a/package.json b/package.json index 2c863198..452f8734 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,7 @@ "dotenv": "^8.2.0", "erlpack": "github:discordapp/erlpack", "express": "^4.17.1", - "firebase": "^7.14.2", + "firebase": "^7.14.3", "firebase-admin": "^8.12.0", "fs": "0.0.1-security", "genius-lyrics-api": "^2.0.3", @@ -43,7 +43,7 @@ "utf-8-validate": "^5.0.2", "video-thumbnail-url": "^1.0.1", "yt-search": "^1.1.2", - "ytdl-core": "^2.1.1", + "ytdl-core": "^2.1.2", "zlib-sync": "^0.1.6" } } diff --git a/src/struct/config/streamConfig.js b/src/struct/config/streamConfig.js index 206f20bc..622a6395 100644 --- a/src/struct/config/streamConfig.js +++ b/src/struct/config/streamConfig.js @@ -1,9 +1,13 @@ module.exports = { - ytdlOptions: { filter: "audio", highWaterMark: 1 << 25, volume: false }, + ytdlOptions: { + filter: "audio", + highWaterMark: 1 << 25, + volume: false, + }, options: { seek: null, bitrate: 1024, volume: 1, type: "converted", }, -}; +}; \ No newline at end of file diff --git a/src/struct/funcs/play.js b/src/struct/funcs/play.js index 36428b30..617beb85 100644 --- a/src/struct/funcs/play.js +++ b/src/struct/funcs/play.js @@ -15,13 +15,10 @@ module.exports = async function (guild, song, client, seek, play) { streamConfig.options.seek = seek; - if (!song.url) { - queue.songs.shift(); - song = queue.songs[0] - } - let input = song.url; - if (song.type === "ytdl") input = ytdl(song.url, streamConfig.ytdlOptions); + if (song.type === "ytdl") input = ytdl(song.url, streamConfig.ytdlOptions) + //.on('info', (info, format) => console.log(format)) + .on('error', err => console.log(err)); const ffmpegArgs = [ "-analyzeduration",