1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-27 13:44:14 +01:00

postprocess: when merge subtitle into file remove it

fixes: 1427
This commit is contained in:
Johan Andersson 2021-10-27 14:53:28 +02:00
parent b8d51a7dcd
commit a03fabc5ab

View File

@ -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")