1
0
mirror of https://github.com/musix-org/musix-oss synced 2025-06-16 12:36:01 +00:00

updated ytdl-core

This commit is contained in:
MatteZ02
2020-05-08 10:35:48 +03:00
parent e3e70510b9
commit 8810b6c01c
3 changed files with 11 additions and 10 deletions

View File

@ -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",
},
};
};

View File

@ -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",