[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 @@ def _extract_formats(self, streaming_data, video_id, player_url, is_live):
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)})