Changed MPV youtube quality script to use yt-dlp

This commit is contained in:
Logan G 2021-11-29 01:16:47 -07:00
parent efd7831320
commit 33a753e982
Signed by: logan
GPG key ID: E328528C921E7A7A

View file

@ -161,7 +161,7 @@ function show_menu()
end end
local ytdl = { local ytdl = {
path = "youtube-dl", path = "yt-dlp",
searched = false, searched = false,
blacklisted = {} blacklisted = {}
} }
@ -190,7 +190,7 @@ function download_formats()
local res = format_cache[url] local res = format_cache[url]
return res, table_size(res) return res, table_size(res)
end end
mp.osd_message("fetching available formats with youtube-dl...", 60) mp.osd_message("Fetching available formats...", 60)
if not (ytdl.searched) then if not (ytdl.searched) then
local ytdl_mcd = mp.find_config_file("youtube-dl") local ytdl_mcd = mp.find_config_file("youtube-dl")