Skip to content

Commit

Permalink
[youtube] Use sp field value for signature field name (closes #18841,…
Browse files Browse the repository at this point in the history
… closes #18927, closes #21028)
  • Loading branch information
Sergey M․ committed May 10, 2019
1 parent a5b92d3 commit 027ffdc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion youtube_dl/extractor/youtube.py
Original file line number Diff line number Diff line change
Expand Up @@ -1987,7 +1987,8 @@ def _extract_filesize(media_url):

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'

Expand Down

0 comments on commit 027ffdc

Please sign in to comment.