From 4c90677089b5b454ffb33d20f041a935fbfb6111 Mon Sep 17 00:00:00 2001 From: iwconfig Date: Thu, 25 Nov 2021 10:40:54 +0100 Subject: [PATCH] Revert "postprocess: when merge subtitle into file remove it" This reverts commit a03fabc5ab7a3694535b502bbcefbb384ec651e2. --- 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 43c3fe3..61a4509 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"): + if self.config.get("merge_subtitle") and not self.config.get("subtitle"): if self.subfixes and len(self.subfixes) >= 2: for subfix in self.subfixes: subfile = orig_filename.parent / (orig_filename.stem + "." + subfix + ".srt")