This commit is contained in:
2026-02-14 15:54:31 -08:00
parent ce2f28cc50
commit ae4880b164
7 changed files with 215 additions and 22 deletions

View File

@@ -2082,8 +2082,9 @@ class Download_File(Cmdlet):
except Exception:
height_selector = None
if query_wants_audio:
# Explicit audio request should map to the configured audio selector (usually '251/140/bestaudio')
ytdl_format = ytdlp_tool.default_format("audio")
# Explicit `format:audio` must always force bestaudio fallback chain
# and avoid format-list/selector ambiguity.
ytdl_format = "bestaudio/best"
elif height_selector:
ytdl_format = height_selector
elif query_format: