[youtube] Decrypt n-sig for URLs with ratebypass

Closes #1796
This commit is contained in:
pukkandan 2021-11-28 18:01:46 +05:30
parent bc104778d6
commit b29165267f
No known key found for this signature in database
GPG key ID: 0F00D95A001F4698

View file

@ -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)})