From da815b70eac4fb530b4eca54afe022c621092dd8 Mon Sep 17 00:00:00 2001 From: Nik Afiq Date: Sat, 31 Jan 2026 01:24:07 +0900 Subject: [PATCH] Add default file extension for output filename in main function --- asobi-downloader.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/asobi-downloader.py b/asobi-downloader.py index 97ea6ce..46b81e8 100644 --- a/asobi-downloader.py +++ b/asobi-downloader.py @@ -301,6 +301,9 @@ def main() -> int: out_name = prompt_with_default( "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")) retries = int(prompt_with_default("Retries per file", "3")) meta_retries = int(prompt_with_default("Playlist/key retries", "3"))