1
0
mirror of https://github.com/musix-org/musix-oss synced 2025-06-16 18:56:00 +00:00

Ytdl-core update

This commit is contained in:
MatteZ02
2019-06-12 12:26:54 +03:00
parent 2a308321ae
commit a40248bc4a
10 changed files with 37 additions and 22 deletions

9
node_modules/ytdl-core/lib/sig.js generated vendored
View File

@ -242,7 +242,14 @@ exports.setDownloadURL = (format, sig, debug) => {
// See https://github.com/fent/node-ytdl-core/issues/127
query.ratebypass = 'yes';
if (sig) {
query.signature = sig;
// When YouTube provides a `sp` parameter the signature `sig` must go
// into the parameter it specifies.
// See https://github.com/fent/node-ytdl-core/issues/417
if (format.sp) {
query[format.sp] = sig;
} else {
query.signature = sig;
}
}
format.url = url.format(parsedUrl);