1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-27 21:54:17 +01:00

postprocess: we should use the filename without extension

This commit is contained in:
Johan Andersson 2021-10-31 02:42:35 +02:00
parent d44a838298
commit 4796e618f8

View File

@ -124,7 +124,7 @@ class postprocess:
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")
subfile = orig_filename.parent / (orig_filename.stem + "." + subfix + ".srt")
os.remove(subfile)
else:
os.remove(subfile)