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:
9
node_modules/ytdl-core/lib/sig.js
generated
vendored
9
node_modules/ytdl-core/lib/sig.js
generated
vendored
@ -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);
|
||||
|
Reference in New Issue
Block a user