From b29165267f931c1135dabb7986b253f9c5673c52 Mon Sep 17 00:00:00 2001 From: pukkandan Date: Sun, 28 Nov 2021 18:01:46 +0530 Subject: [PATCH] [youtube] Decrypt n-sig for URLs with `ratebypass` Closes #1796 --- yt_dlp/extractor/youtube.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yt_dlp/extractor/youtube.py b/yt_dlp/extractor/youtube.py index ba135613b..e4854bead 100644 --- a/yt_dlp/extractor/youtube.py +++ b/yt_dlp/extractor/youtube.py @@ -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)})