mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2025-05-14 17:45:51 +00:00
Formatting...
This commit is contained in:
parent
0620d817c3
commit
01bc8a1b99
@ -680,9 +680,11 @@ class PBSIE(InfoExtractor):
|
|||||||
ttml_caption_id = int(ttml_caption_id)
|
ttml_caption_id = int(ttml_caption_id)
|
||||||
subtitles['en'].extend([{
|
subtitles['en'].extend([{
|
||||||
'url': closed_captions_url.replace(
|
'url': closed_captions_url.replace(
|
||||||
ttml_caption_suffix, '/%d_Encoded.srt' % (ttml_caption_id + 1)), 'ext': 'srt',
|
ttml_caption_suffix, '/%d_Encoded.srt' % (ttml_caption_id + 1)),
|
||||||
|
'ext': 'srt',
|
||||||
}, {
|
}, {
|
||||||
'url': closed_captions_url.replace(ttml_caption_suffix, '/%d_Encoded.vtt' % (ttml_caption_id + 2)),
|
'url': closed_captions_url.replace(
|
||||||
|
ttml_caption_suffix, '/%d_Encoded.vtt' % (ttml_caption_id + 2)),
|
||||||
'ext': 'vtt',
|
'ext': 'vtt',
|
||||||
}])
|
}])
|
||||||
elif info.get('cc'):
|
elif info.get('cc'):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user