mirror of
https://github.com/ytdl-org/youtube-dl
synced 2025-03-17 13:32:21 +09:00
fix #1213
This commit is contained in:
parent
67fb0c5495
commit
7ce6d1a5cf
@ -313,8 +313,11 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
|
|||||||
|
|
||||||
def report_video_subtitles_available(self, video_id, sub_lang_list):
|
def report_video_subtitles_available(self, video_id, sub_lang_list):
|
||||||
"""Report available subtitles."""
|
"""Report available subtitles."""
|
||||||
sub_lang = ",".join(list(sub_lang_list.keys()))
|
if isinstance(sub_lang_list, dict):
|
||||||
self.to_screen(u'%s: Available subtitles for video: %s' % (video_id, sub_lang))
|
sub_lang = ",".join(list(sub_lang_list.keys()))
|
||||||
|
self.to_screen(u'%s: Available subtitles for video: %s' % (video_id, sub_lang))
|
||||||
|
else:
|
||||||
|
self.to_screen(u'%s: No available subtitle' % (video_id))
|
||||||
|
|
||||||
def report_information_extraction(self, video_id):
|
def report_information_extraction(self, video_id):
|
||||||
"""Report attempt to extract video information."""
|
"""Report attempt to extract video information."""
|
||||||
|
Loading…
Reference in New Issue
Block a user