|
|
@ -1366,14 +1366,14 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
|
|
|
|
'ext': ext,
|
|
|
|
'ext': ext,
|
|
|
|
})
|
|
|
|
})
|
|
|
|
sub_lang_list[lang] = sub_formats
|
|
|
|
sub_lang_list[lang] = sub_formats
|
|
|
|
if has_live_chat_replay:
|
|
|
|
""" if has_live_chat_replay:
|
|
|
|
sub_lang_list['live_chat'] = [
|
|
|
|
sub_lang_list['live_chat'] = [
|
|
|
|
{
|
|
|
|
{
|
|
|
|
'video_id': video_id,
|
|
|
|
'video_id': video_id,
|
|
|
|
'ext': 'json',
|
|
|
|
'ext': 'json',
|
|
|
|
'protocol': 'youtube_live_chat_replay',
|
|
|
|
'protocol': 'youtube_live_chat_replay',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
]
|
|
|
|
] """
|
|
|
|
if not sub_lang_list:
|
|
|
|
if not sub_lang_list:
|
|
|
|
self._downloader.report_warning('video doesn\'t have subtitles')
|
|
|
|
self._downloader.report_warning('video doesn\'t have subtitles')
|
|
|
|
return {}
|
|
|
|
return {}
|
|
|
|