minor update
All checks were successful
Luacheck / luacheck (push) Successful in 4s

- add message on screen when waiting for video info
- remove osd messages when printing queue
This commit is contained in:
sudacode 2024-09-10 01:46:07 -07:00
parent 6abfe30d44
commit f89f852201

View File

@ -387,6 +387,7 @@ function YouTubeQueue.get_clipboard_content()
end end
function YouTubeQueue.get_video_info(url) function YouTubeQueue.get_video_info(url)
print_osd_message("Getting video info...", MSG_DURATION * 2)
local res = mp.command_native({ local res = mp.command_native({
name = "subprocess", name = "subprocess",
playback_only = false, playback_only = false,
@ -409,6 +410,8 @@ function YouTubeQueue.get_video_info(url)
return nil return nil
end end
destroy()
return channel_url, uploader, title return channel_url, uploader, title
end end
@ -525,6 +528,7 @@ end
function YouTubeQueue.print_queue(duration) function YouTubeQueue.print_queue(duration)
timeout:kill() timeout:kill()
mp.set_osd_ass(0, 0, "")
timeout:resume() timeout:resume()
local ass = assdraw.ass_new() local ass = assdraw.ass_new()
local current_index = index local current_index = index