diff options
author | InigoGutierrez <inigogf.95@gmail.com> | 2023-05-08 09:42:29 +0200 |
---|---|---|
committer | InigoGutierrez <inigogf.95@gmail.com> | 2023-05-08 09:42:29 +0200 |
commit | 22bbedd73e2b31b5188b38ca3166e146c5f3d431 (patch) | |
tree | 64c8d6374dbd98c11230fde263dd64155959bef1 /stow/mpv/.config | |
parent | e6bd59a9bc5a6ef70337151c107429088615bd85 (diff) | |
download | configs-22bbedd73e2b31b5188b38ca3166e146c5f3d431.tar.gz configs-22bbedd73e2b31b5188b38ca3166e146c5f3d431.zip |
Bunch of changes.
Diffstat (limited to 'stow/mpv/.config')
-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() |