mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-03 19:29:51 +01:00
[extractor/youtube] Fix live chat for videos with content warning
Fixes #4051 Authored by: coletdjnz
This commit is contained in:
parent
2523702718
commit
4ce05f5759
@ -3690,7 +3690,8 @@ def process_language(container, base_url, lang_code, sub_name, query):
|
|||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
info.setdefault('subtitles', {})['live_chat'] = [{
|
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,
|
'video_id': video_id,
|
||||||
'ext': 'json',
|
'ext': 'json',
|
||||||
'protocol': 'youtube_live_chat' if is_live or is_upcoming else 'youtube_live_chat_replay',
|
'protocol': 'youtube_live_chat' if is_live or is_upcoming else 'youtube_live_chat_replay',
|
||||||
|
Loading…
Reference in New Issue
Block a user