From 56f53e512323898e9d9e7b7be7c699803c08d38e Mon Sep 17 00:00:00 2001 From: Christoph Heinrich Date: Tue, 13 Aug 2024 13:51:27 +0200 Subject: [PATCH] Fix ytdl_format=ytdl This was treated as if it was a regular format, but instead it shouldn't be added to the ytdl arguments. Fixes #41 --- quality-menu.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quality-menu.lua b/quality-menu.lua index a436d8a..e636f33 100644 --- a/quality-menu.lua +++ b/quality-menu.lua @@ -569,7 +569,7 @@ local function download_formats(url) local ytdl_format = mp.get_property('ytdl-format') local raw_options = mp.get_property_native('ytdl-raw-options') local command = { ytdl.path, '--no-warnings', '--no-playlist', '-J' } - if ytdl_format and #ytdl_format > 0 then + if ytdl_format and #ytdl_format > 0 and ytdl_format ~= 'ytdl' then command[#command + 1] = '-f' command[#command + 1] = ytdl_format end