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:
parent
d44a838298
commit
4796e618f8
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user