mirror of
https://github.com/musix-org/musix-oss
synced 2024-11-12 23:20:17 +00:00
updated ytdl-core
This commit is contained in:
parent
e3e70510b9
commit
8810b6c01c
@ -27,7 +27,7 @@
|
|||||||
"dotenv": "^8.2.0",
|
"dotenv": "^8.2.0",
|
||||||
"erlpack": "github:discordapp/erlpack",
|
"erlpack": "github:discordapp/erlpack",
|
||||||
"express": "^4.17.1",
|
"express": "^4.17.1",
|
||||||
"firebase": "^7.14.2",
|
"firebase": "^7.14.3",
|
||||||
"firebase-admin": "^8.12.0",
|
"firebase-admin": "^8.12.0",
|
||||||
"fs": "0.0.1-security",
|
"fs": "0.0.1-security",
|
||||||
"genius-lyrics-api": "^2.0.3",
|
"genius-lyrics-api": "^2.0.3",
|
||||||
@ -43,7 +43,7 @@
|
|||||||
"utf-8-validate": "^5.0.2",
|
"utf-8-validate": "^5.0.2",
|
||||||
"video-thumbnail-url": "^1.0.1",
|
"video-thumbnail-url": "^1.0.1",
|
||||||
"yt-search": "^1.1.2",
|
"yt-search": "^1.1.2",
|
||||||
"ytdl-core": "^2.1.1",
|
"ytdl-core": "^2.1.2",
|
||||||
"zlib-sync": "^0.1.6"
|
"zlib-sync": "^0.1.6"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,9 +1,13 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
ytdlOptions: { filter: "audio", highWaterMark: 1 << 25, volume: false },
|
ytdlOptions: {
|
||||||
|
filter: "audio",
|
||||||
|
highWaterMark: 1 << 25,
|
||||||
|
volume: false,
|
||||||
|
},
|
||||||
options: {
|
options: {
|
||||||
seek: null,
|
seek: null,
|
||||||
bitrate: 1024,
|
bitrate: 1024,
|
||||||
volume: 1,
|
volume: 1,
|
||||||
type: "converted",
|
type: "converted",
|
||||||
},
|
},
|
||||||
};
|
};
|
@ -15,13 +15,10 @@ module.exports = async function (guild, song, client, seek, play) {
|
|||||||
|
|
||||||
streamConfig.options.seek = seek;
|
streamConfig.options.seek = seek;
|
||||||
|
|
||||||
if (!song.url) {
|
|
||||||
queue.songs.shift();
|
|
||||||
song = queue.songs[0]
|
|
||||||
}
|
|
||||||
|
|
||||||
let input = song.url;
|
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 = [
|
const ffmpegArgs = [
|
||||||
"-analyzeduration",
|
"-analyzeduration",
|
||||||
|
Loading…
Reference in New Issue
Block a user