diff options
Diffstat (limited to 'stow/mpv')
-rw-r--r-- | stow/mpv/.config/mpv/scripts/youtube-quality.lua | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/stow/mpv/.config/mpv/scripts/youtube-quality.lua b/stow/mpv/.config/mpv/scripts/youtube-quality.lua index b587f37..a906e10 100644 --- a/stow/mpv/.config/mpv/scripts/youtube-quality.lua +++ b/stow/mpv/.config/mpv/scripts/youtube-quality.lua @@ -112,7 +112,7 @@ function show_menu() draw_menu() end function choose_prefix(i) - if i == selected and i == active then return opts.selected_and_active + if i == selected and i == active then return opts.selected_and_active elseif i == selected then return opts.selected_and_inactive end if i ~= selected and i == active then return opts.unselected_and_active @@ -157,11 +157,11 @@ function show_menu() mp.add_forced_key_binding(opts.toggle_menu_binding, "escape", destroy) draw_menu() - return + return end local ytdl = { - path = "youtube-dl", + path = "yt-dlp", searched = false, blacklisted = {} } @@ -186,7 +186,7 @@ function download_formats() url = string.gsub(url, "ytdl://", "") -- Strip possible ytdl:// prefix. -- don't fetch the format list if we already have it - if format_cache[url] ~= nil then + if format_cache[url] ~= nil then local res = format_cache[url] return res, table_size(res) end @@ -240,7 +240,7 @@ end -- register script message to show menu -mp.register_script_message("toggle-quality-menu", +mp.register_script_message("toggle-quality-menu", function() if destroyer ~= nil then destroyer() |