mirror of
https://github.com/ksyasuda/mpv-youtube-queue.git
synced 2024-11-22 03:19:54 -08:00
- add message on screen when waiting for video info - remove osd messages when printing queue
This commit is contained in:
parent
6abfe30d44
commit
f89f852201
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user