From c8befec3f30dcbcc9ffb0346e5376306cbfb4fc7 Mon Sep 17 00:00:00 2001 From: Parasitic5283 Date: Tue, 15 Oct 2024 11:24:13 +0200 Subject: [PATCH] Update subtitle.py --- devine/core/tracks/subtitle.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/devine/core/tracks/subtitle.py b/devine/core/tracks/subtitle.py index 2f27a4e..300b894 100644 --- a/devine/core/tracks/subtitle.py +++ b/devine/core/tracks/subtitle.py @@ -275,12 +275,12 @@ class Subtitle(Track): stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL ) - elif self.codec in Subtitle.Codec.fTTML: - output_path = self.path.with_suffix(".srt") - converter = ISMTConverter() - srt = converter.from_file(self.path) - srt.save(output_path) - codec = Subtitle.Codec.SubRip + elif self.codec in Subtitle.Codec.fTTML: + output_path = self.path.with_suffix(".srt") + converter = ISMTConverter() + srt = converter.from_file(self.path) + srt.save(output_path) + codec = Subtitle.Codec.SubRip else: writer = { # pycaption generally only supports these subtitle formats