1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-11-01 15:15:15 +00:00

support youtube live chat replay

This commit is contained in:
siikamiika
2020-08-05 01:02:23 +03:00
parent 98b69821e4
commit a78e3a5795
3 changed files with 98 additions and 0 deletions

View File

@@ -1462,6 +1462,14 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
'ext': ext,
})
sub_lang_list[lang] = sub_formats
# TODO check that live chat replay actually exists
sub_lang_list['live_chat'] = [
{
'video_id': video_id,
'ext': 'json',
'protocol': 'youtube_live_chat_replay',
},
]
if not sub_lang_list:
self._downloader.report_warning('video doesn\'t have subtitles')
return {}