commit 027ffdca0d3174963a4269ce8de8519cfed7a12c
parent a5b92d3590def85aee73d2968875e9a9cc916f26
Author: Sergey M․ <dstftw@gmail.com>
Date:   Fri, 10 May 2019 08:36:10 +0700

[youtube] Use sp field value for signature field name (closes #18841, closes #18927, closes #21028)

Diffstat:
Myoutube_dl/extractor/youtube.py | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py @@ -1987,7 +1987,8 @@ class YoutubeIE(YoutubeBaseInfoExtractor): signature = self._decrypt_signature( encrypted_sig, video_id, player_url, age_gate) - url += '&signature=' + signature + sp = try_get(url_data, lambda x: x['sp'][0], compat_str) or 'signature' + url += '&%s=%s' % (sp, signature) if 'ratebypass' not in url: url += '&ratebypass=yes'