1
0
mirror of https://github.com/l1ving/youtube-dl synced 2024-12-21 16:45:13 +08:00

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

This commit is contained in:
Sergey M․ 2019-05-10 08:36:10 +07:00
parent a5b92d3590
commit 027ffdca0d
No known key found for this signature in database
GPG Key ID: 2C393E0F18A9236D

View File

@ -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'