Changed MPV youtube quality script to use yt-dlp
This commit is contained in:
parent
efd7831320
commit
33a753e982
1 changed files with 2 additions and 2 deletions
|
@ -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")
|
||||||
|
|
Loading…
Reference in a new issue