From a03fabc5ab7a3694535b502bbcefbb384ec651e2 Mon Sep 17 00:00:00 2001 From: Johan Andersson Date: Wed, 27 Oct 2021 14:53:28 +0200 Subject: [PATCH] postprocess: when merge subtitle into file remove it fixes: 1427 --- lib/svtplay_dl/postprocess/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/svtplay_dl/postprocess/__init__.py b/lib/svtplay_dl/postprocess/__init__.py index 648301a..803047a 100644 --- a/lib/svtplay_dl/postprocess/__init__.py +++ b/lib/svtplay_dl/postprocess/__init__.py @@ -121,7 +121,7 @@ class postprocess: if (self.stream.audio and self.config.get("only_audio")) or (self.stream.audio and not self.config.get("only_video")): os.remove(audio_filename) - if self.config.get("merge_subtitle") and not self.config.get("subtitle"): + if self.config.get("merge_subtitle"): if self.subfixes and len(self.subfixes) >= 2: for subfix in self.subfixes: subfile = orig_filename.parent / (orig_filename.name + "." + subfix + ".srt")