mirror of
https://github.com/ytdl-org/youtube-dl
synced 2025-10-19 22:58:37 +09:00
Moving protocol to download subtitles back to the subtitle_info and keep the download logic in YoutubeDl
This commit is contained in:
@@ -1708,6 +1708,7 @@ class InfoExtractor(object):
|
||||
subtitles[media['LANGUAGE']] = [{
|
||||
'url': format_url(media['URI']),
|
||||
'ext': media.get('SUBFORMAT', 'webtt'),
|
||||
'protocol': 'm3u8_native',
|
||||
}]
|
||||
return
|
||||
if media_type not in ('VIDEO', 'AUDIO'):
|
||||
|
@@ -206,10 +206,6 @@ class FranceTVIE(InfoExtractor):
|
||||
info['title'] += ' - %s' % info['subtitle']
|
||||
info['title'] = info['title'].strip()
|
||||
|
||||
for lang, sts in info['subtitles'].items():
|
||||
for st in sts:
|
||||
st['downloader'] = lambda ydl, filename: PROTOCOL_MAP['m3u8_native'](ydl, ydl.params).download(filename, st)
|
||||
|
||||
return {
|
||||
'id': video_id,
|
||||
'title': self._live_title(info['title']) if is_live else info['title'],
|
||||
|
Reference in New Issue
Block a user