From 22bbedd73e2b31b5188b38ca3166e146c5f3d431 Mon Sep 17 00:00:00 2001 From: InigoGutierrez Date: Mon, 8 May 2023 09:42:29 +0200 Subject: Bunch of changes. --- stow/mpv/.config/mpv/scripts/youtube-quality.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'stow/mpv/.config') 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() -- cgit v1.2.1