Skip to content

Commit

Permalink
Fix ytdl_format=ytdl
Browse files Browse the repository at this point in the history
This was treated as if it was a regular format, but instead it shouldn't
be added to the ytdl arguments.

Fixes #41
  • Loading branch information
christoph-heinrich committed Aug 13, 2024
1 parent ab40a0d commit 56f53e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion quality-menu.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 56f53e5

Please sign in to comment.