[youtube] Decrypt n-sig for URLs with `ratebypass`

Closes #1796
pull/1842/head
pukkandan 3 years ago
parent bc104778d6
commit b29165267f
No known key found for this signature in database
GPG Key ID: 0F00D95A001F4698

@ -2514,7 +2514,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
query = parse_qs(fmt_url)
throttled = False
if query.get('ratebypass') != ['yes'] and query.get('n'):
if query.get('n'):
try:
fmt_url = update_url_query(fmt_url, {
'n': self._decrypt_nsig(query['n'][0], video_id, player_url)})

Loading…
Cancel
Save