Merge pull request #170 from n9Mtq4/fix/outputname

Support output files in different folders
This commit is contained in:
Zen 2020-10-06 08:22:38 +03:00 committed by GitHub
commit 8e74f4de40
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -162,5 +162,5 @@ def outputs_filenames(args: Args):
:param args: the Args
"""
suffix = '.mkv'
args.output_file = Path(f'{args.output_file.stem}{suffix}') if args.output_file \
else Path(f'{args.input.stem}_{args.encoder}{suffix}')
args.output_file = Path(args.output_file).with_suffix(suffix) if args.output_file \
else Path(f'{args.input.stem}_{args.encoder}{suffix}')