aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcoletdjnz <coletdjnz@protonmail.com>2022-06-12 17:56:50 +1200
committercoletdjnz <coletdjnz@protonmail.com>2022-06-12 17:56:50 +1200
commit4ce05f57599961c853253398b993c94efb504048 (patch)
tree209756c4071e048251a2d1a71dd7eda3812238f0
parent2523702718f07bbc5c2b71552a2537050440bdf3 (diff)
downloadhypervideo-pre-4ce05f57599961c853253398b993c94efb504048.tar.lz
hypervideo-pre-4ce05f57599961c853253398b993c94efb504048.tar.xz
hypervideo-pre-4ce05f57599961c853253398b993c94efb504048.zip
[extractor/youtube] Fix live chat for videos with content warning
Fixes #4051 Authored by: coletdjnz
-rw-r--r--yt_dlp/extractor/youtube.py3
1 files changed, 2 insertions, 1 deletions
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 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
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',