From 4ce05f57599961c853253398b993c94efb504048 Mon Sep 17 00:00:00 2001 From: coletdjnz Date: Sun, 12 Jun 2022 17:56:50 +1200 Subject: [PATCH] [extractor/youtube] Fix live chat for videos with content warning Fixes #4051 Authored by: coletdjnz --- yt_dlp/extractor/youtube.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/yt_dlp/extractor/youtube.py b/yt_dlp/extractor/youtube.py index a6fcebf82..c3a4f70d9 100644 --- a/yt_dlp/extractor/youtube.py +++ b/yt_dlp/extractor/youtube.py @@ -3690,7 +3690,8 @@ def process_language(container, base_url, lang_code, sub_name, query): pass else: info.setdefault('subtitles', {})['live_chat'] = [{ - 'url': f'https://www.youtube.com/watch?v={video_id}', # url is needed to set cookies + # url is needed to set cookies + 'url': f'https://www.youtube.com/watch?v={video_id}&bpctr=9999999999&has_verified=1', 'video_id': video_id, 'ext': 'json', 'protocol': 'youtube_live_chat' if is_live or is_upcoming else 'youtube_live_chat_replay',