diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-03-23 12:36:16 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-03-23 12:36:49 +0530 |
commit | ea5ca8e7fcf348a40e3eda70738738739123bded (patch) | |
tree | 4f9ca31f2831606e97b546a3878bfdea36ffac66 | |
parent | c2d2ee40eb168ef9f433b645271a55d821c327e5 (diff) | |
download | hypervideo-pre-ea5ca8e7fcf348a40e3eda70738738739123bded.tar.lz hypervideo-pre-ea5ca8e7fcf348a40e3eda70738738739123bded.tar.xz hypervideo-pre-ea5ca8e7fcf348a40e3eda70738738739123bded.zip |
[ellentube] Extract subtitles from manifest
Fixes https://github.com/ytdl-org/youtube-dl/issues/30761
-rw-r--r-- | yt_dlp/extractor/ellentube.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/yt_dlp/extractor/ellentube.py b/yt_dlp/extractor/ellentube.py index 544473274..d451bc048 100644 --- a/yt_dlp/extractor/ellentube.py +++ b/yt_dlp/extractor/ellentube.py @@ -26,7 +26,7 @@ class EllenTubeBaseIE(InfoExtractor): duration = None for entry in data.get('media'): if entry.get('id') == 'm3u8': - formats = self._extract_m3u8_formats( + formats, subtitles = self._extract_m3u8_formats_and_subtitles( entry['url'], video_id, 'mp4', entry_protocol='m3u8_native', m3u8_id='hls') duration = int_or_none(entry.get('duration')) @@ -48,6 +48,7 @@ class EllenTubeBaseIE(InfoExtractor): 'view_count': get_insight('view'), 'like_count': get_insight('like'), 'formats': formats, + 'subtitles': subtitles, } |