mirror of
https://github.com/ksyasuda/mpv-youtube-queue.git
synced 2024-10-28 04:44:11 -07:00
remove print statements in non logging functions
Some checks failed
Luacheck / luacheck (push) Has been cancelled
Some checks failed
Luacheck / luacheck (push) Has been cancelled
This commit is contained in:
parent
870f7473cf
commit
0739b93e3a
@ -201,9 +201,7 @@ end
|
|||||||
-- Function to split the clipboard_command into it's parts and return as a table
|
-- Function to split the clipboard_command into it's parts and return as a table
|
||||||
local function _split_command(cmd)
|
local function _split_command(cmd)
|
||||||
local components = {}
|
local components = {}
|
||||||
for arg in cmd:gmatch("%S+") do
|
for arg in cmd:gmatch("%S+") do table.insert(components, arg) end
|
||||||
table.insert(components, arg)
|
|
||||||
end
|
|
||||||
_remove_command_quotes(components)
|
_remove_command_quotes(components)
|
||||||
return components
|
return components
|
||||||
end
|
end
|
||||||
@ -223,9 +221,6 @@ end
|
|||||||
-- returns the content of the clipboard
|
-- returns the content of the clipboard
|
||||||
function YouTubeQueue.get_clipboard_content()
|
function YouTubeQueue.get_clipboard_content()
|
||||||
local command = _split_command(options.clipboard_command)
|
local command = _split_command(options.clipboard_command)
|
||||||
for i, v in ipairs(command) do
|
|
||||||
print(i, v)
|
|
||||||
end
|
|
||||||
local res = mp.command_native({
|
local res = mp.command_native({
|
||||||
name = "subprocess",
|
name = "subprocess",
|
||||||
playback_only = false,
|
playback_only = false,
|
||||||
@ -601,8 +596,8 @@ function YouTubeQueue.remove_from_queue()
|
|||||||
table.remove(video_queue, selected_index)
|
table.remove(video_queue, selected_index)
|
||||||
mp.commandv("playlist-remove", selected_index - 1)
|
mp.commandv("playlist-remove", selected_index - 1)
|
||||||
if current_video and current_video.video_name then
|
if current_video and current_video.video_name then
|
||||||
print_osd_message("Deleted " .. current_video.video_name .. " from queue.",
|
print_osd_message("Deleted " .. current_video.video_name ..
|
||||||
MSG_DURATION)
|
" from queue.", MSG_DURATION)
|
||||||
end
|
end
|
||||||
if selected_index > 1 then selected_index = selected_index - 1 end
|
if selected_index > 1 then selected_index = selected_index - 1 end
|
||||||
index = index - 1
|
index = index - 1
|
||||||
|
Loading…
Reference in New Issue
Block a user