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:
@ -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",
|
||||
},
|
||||
};
|
||||
};
|
@ -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",
|
||||
|
Reference in New Issue
Block a user