Pass %(ext)s when filename is provided on command line
This commit is contained in:
parent
b6d2c0b38b
commit
c730a5b169
@ -58,7 +58,7 @@ if __name__ == "__main__":
|
|||||||
# filename handling
|
# filename handling
|
||||||
# if -b is used, DEFAULT_FILENAME must take precedence
|
# if -b is used, DEFAULT_FILENAME must take precedence
|
||||||
if args.filename is not None and args.batchfile is None:
|
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:
|
else:
|
||||||
dl_opts.append(f"--output={DEFAULT_FILENAME}")
|
dl_opts.append(f"--output={DEFAULT_FILENAME}")
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user