mirror of
https://github.com/BluemediaDev/muse.git
synced 2025-06-26 16:52:42 +02:00
Update ytdl-core to 4.15.9 and use new playerClients default
This commit is contained in:
parent
6958af2b2e
commit
60c1c21d61
5 changed files with 10419 additions and 343 deletions
|
@ -81,7 +81,7 @@ services:
|
|||
### Node.js
|
||||
|
||||
**Prerequisites**:
|
||||
* Node.js (18.17.0 or later is required and latest 18.x.x LTS is recommended)
|
||||
* Node.js (18.17.0 or latest 18.xx.xx is required and latest 18.x.x LTS is recommended) (Version 18 due to opus dependency)
|
||||
* ffmpeg (4.1 or later)
|
||||
|
||||
1. `git clone https://github.com/museofficial/muse.git && cd muse`
|
||||
|
|
10061
package-lock.json
generated
Normal file
10061
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load diff
|
@ -85,11 +85,12 @@
|
|||
}
|
||||
},
|
||||
"dependencies": {
|
||||
"18": "^0.0.0",
|
||||
"@discordjs/builders": "1.1.0",
|
||||
"@discordjs/opus": "^0.8.0",
|
||||
"@discordjs/rest": "1.0.1",
|
||||
"@discordjs/voice": "0.17.0",
|
||||
"@distube/ytdl-core": "^4.14.8",
|
||||
"@distube/ytdl-core": "^4.15.9",
|
||||
"@distube/ytsr": "^2.0.4",
|
||||
"@prisma/client": "4.16.0",
|
||||
"@types/libsodium-wrappers": "^0.7.9",
|
||||
|
|
|
@ -515,7 +515,7 @@ export default class {
|
|||
|
||||
if (!ffmpegInput) {
|
||||
// Not yet cached, must download
|
||||
const info = await ytdl.getInfo(song.url, {playerClients: ['WEB_CREATOR', 'IOS']});
|
||||
const info = await ytdl.getInfo(song.url);
|
||||
|
||||
const formats = info.formats as YTDLVideoFormat[];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue