fix site support

This commit is contained in:
Jill 2021-10-26 14:33:59 +03:00
parent 2172572489
commit e9c2b7ef4a
1 changed files with 6 additions and 2 deletions

View File

@ -94,9 +94,13 @@ async function play(song, id, connection, channel) {
let err, out
try {
err, out = await promisify(exec)('youtube-dl -f bestaudio,best --youtube-skip-dash-manifest --force-ipv4 -g "' + song.originalUrl + '"');
err, out = await promisify(exec)('youtube-dl -f bestaudio --youtube-skip-dash-manifest --force-ipv4 -g "' + song.originalUrl + '"');
} catch(err_) {
err = err_;
try {
err, out = await promisify(exec)('youtube-dl -f best --youtube-skip-dash-manifest --force-ipv4 -g "' + song.originalUrl + '"');
} catch(err_) {
err = err_
}
}
if (err) {