From c730a5b1699afaf5f0f57c30887b7094d59b2a14 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..c75f631 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"{Path.home() / 'Music' / args.filename}.%(ext)s") else: dl_opts.append(f"--output={DEFAULT_FILENAME}")