yotube-dl: extract subtitles
This commit is contained in:
parent
1c24ec1408
commit
02780a4691
@ -2009,8 +2009,8 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
|
|||||||
dislike_count = _extract_count('dislike')
|
dislike_count = _extract_count('dislike')
|
||||||
|
|
||||||
# subtitles
|
# subtitles
|
||||||
video_subtitles = self.extract_subtitles(video_id, video_webpage)
|
video_subtitles = self._get_subtitles(video_id, video_webpage)
|
||||||
automatic_captions = self.extract_automatic_captions(video_id, video_webpage)
|
automatic_captions = self._get_automatic_captions(video_id, video_webpage)
|
||||||
|
|
||||||
video_duration = try_get(
|
video_duration = try_get(
|
||||||
video_info, lambda x: int_or_none(x['length_seconds'][0]))
|
video_info, lambda x: int_or_none(x['length_seconds'][0]))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user