mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-11-25 19:52:11 +00:00
[FFmpegSubtitlesConvertorPP] fix not working when srt is used as the intermediate format between ttml/dfxp and other format
It was trying to use the ttml/dfxp file with ffmpeg, which doesn't have support for them.
I broke it in e04398e397
.
This commit is contained in:
parent
56401e1e5f
commit
7e62c2eb6d
1 changed files with 1 additions and 0 deletions
|
@ -508,6 +508,7 @@ class FFmpegSubtitlesConvertorPP(FFmpegPostProcessor):
|
||||||
|
|
||||||
with io.open(srt_file, 'wt', encoding='utf-8') as f:
|
with io.open(srt_file, 'wt', encoding='utf-8') as f:
|
||||||
f.write(srt_data)
|
f.write(srt_data)
|
||||||
|
old_file = srt_file
|
||||||
|
|
||||||
ext = 'srt'
|
ext = 'srt'
|
||||||
subs[lang] = {
|
subs[lang] = {
|
||||||
|
|
Loading…
Reference in a new issue