From a5743a40e396009930ce7007412b7330d6795a92 Mon Sep 17 00:00:00 2001 From: Francesco Picone Date: Sat, 10 Jan 2026 14:42:56 +0100 Subject: [PATCH] ++ --- api/app.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/app.py b/api/app.py index 2f7e246..3167461 100644 --- a/api/app.py +++ b/api/app.py @@ -155,7 +155,8 @@ def download(): if mode == "video": if format_id: - ydl_opts["format"] = format_id + # Use specific format ID + best audio, then merge + ydl_opts["format"] = f"{format_id}+bestaudio/best" else: ydl_opts["format"] = "bestvideo*+bestaudio/best" else: