mirror of
https://github.com/spaam/svtplay-dl.git
synced 2024-11-24 04:05:39 +01:00
Revert "postprocess: when merge subtitle into file remove it"
This reverts commit a03fabc5ab
.
This commit is contained in:
parent
14e1e6585c
commit
4c90677089
@ -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")):
|
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)
|
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:
|
if self.subfixes and len(self.subfixes) >= 2:
|
||||||
for subfix in self.subfixes:
|
for subfix in self.subfixes:
|
||||||
subfile = orig_filename.parent / (orig_filename.stem + "." + subfix + ".srt")
|
subfile = orig_filename.parent / (orig_filename.stem + "." + subfix + ".srt")
|
||||||
|
Loading…
Reference in New Issue
Block a user