mirror of
https://github.com/yt-dlp/yt-dlp
synced 2024-12-28 22:24:34 +01:00
[SubtitleConvertor] Do not attempt to convert unsupported formats
This commit is contained in:
parent
f0bb28504c
commit
e464e56115
1 changed files with 2 additions and 2 deletions
|
@ -972,9 +972,9 @@ class FFmpegSubtitlesConvertorPP(FFmpegPostProcessor):
|
||||||
if ext == new_ext:
|
if ext == new_ext:
|
||||||
self.to_screen(f'Subtitle file for {new_ext} is already in the requested format')
|
self.to_screen(f'Subtitle file for {new_ext} is already in the requested format')
|
||||||
continue
|
continue
|
||||||
elif ext == 'json':
|
elif ext not in self.SUPPORTED_EXTS:
|
||||||
self.to_screen(
|
self.to_screen(
|
||||||
'You have requested to convert json subtitles into another format, '
|
f'You have requested to convert {ext} subtitles into another format, '
|
||||||
'which is currently not possible')
|
'which is currently not possible')
|
||||||
continue
|
continue
|
||||||
old_file = sub['filepath']
|
old_file = sub['filepath']
|
||||||
|
|
Loading…
Reference in a new issue