Add default file extension for output filename in main function
This commit is contained in:
parent
75f5e0f002
commit
da815b70ea
@ -301,6 +301,9 @@ def main() -> int:
|
|||||||
out_name = prompt_with_default(
|
out_name = prompt_with_default(
|
||||||
"Output filename (without path)", "output.mkv"
|
"Output filename (without path)", "output.mkv"
|
||||||
)
|
)
|
||||||
|
if Path(out_name).suffix == "":
|
||||||
|
out_name = out_name + ".mkv"
|
||||||
|
print(f"No extension provided; using {out_name}")
|
||||||
threads = int(prompt_with_default("Concurrent downloads", "16"))
|
threads = int(prompt_with_default("Concurrent downloads", "16"))
|
||||||
retries = int(prompt_with_default("Retries per file", "3"))
|
retries = int(prompt_with_default("Retries per file", "3"))
|
||||||
meta_retries = int(prompt_with_default("Playlist/key retries", "3"))
|
meta_retries = int(prompt_with_default("Playlist/key retries", "3"))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user