From f89f852201dc5fd4bc76e071be495d997bf760ae Mon Sep 17 00:00:00 2001 From: sudacode Date: Tue, 10 Sep 2024 01:46:07 -0700 Subject: [PATCH] minor update - add message on screen when waiting for video info - remove osd messages when printing queue --- mpv-youtube-queue.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mpv-youtube-queue.lua b/mpv-youtube-queue.lua index 371f3b2..0b83fca 100644 --- a/mpv-youtube-queue.lua +++ b/mpv-youtube-queue.lua @@ -387,6 +387,7 @@ function YouTubeQueue.get_clipboard_content() end function YouTubeQueue.get_video_info(url) + print_osd_message("Getting video info...", MSG_DURATION * 2) local res = mp.command_native({ name = "subprocess", playback_only = false, @@ -409,6 +410,8 @@ function YouTubeQueue.get_video_info(url) return nil end + destroy() + return channel_url, uploader, title end @@ -525,6 +528,7 @@ end function YouTubeQueue.print_queue(duration) timeout:kill() + mp.set_osd_ass(0, 0, "") timeout:resume() local ass = assdraw.ass_new() local current_index = index