From 343df18c832d6bcd4730540b318f9f8780dc5a5a Mon Sep 17 00:00:00 2001 From: Eric Torres Date: Mon, 17 Jun 2019 20:38:52 -0700 Subject: [PATCH] Pass %(ext)s when filename is provided on command line --- dlaudio.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlaudio.py b/dlaudio.py index e190ba4..7745770 100644 --- a/dlaudio.py +++ b/dlaudio.py @@ -58,7 +58,7 @@ if __name__ == "__main__": # filename handling # if -b is used, DEFAULT_FILENAME must take precedence if args.filename is not None and args.batchfile is None: - dl_opts.append(f"--output={args.filename}") + dl_opts.append(f"--output={Path.home() / 'Music' / args.filename}.%(ext)s") else: dl_opts.append(f"--output={DEFAULT_FILENAME}")