fix site support
This commit is contained in:
parent
2172572489
commit
e9c2b7ef4a
|
@ -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) {
|
||||
|
|
Reference in New Issue