mirror of
https://github.com/ksyasuda/mpv-youtube-queue.git
synced 2025-07-03 01:03:33 -07:00
remove print from event functions
This commit is contained in:
@ -165,20 +165,17 @@ end
|
|||||||
function YouTubeQueue.on_end_file(event)
|
function YouTubeQueue.on_end_file(event)
|
||||||
if event.reason == "eof" then -- The file ended normally
|
if event.reason == "eof" then -- The file ended normally
|
||||||
YouTubeQueue.update_current_index()
|
YouTubeQueue.update_current_index()
|
||||||
print_video_name(YouTubeQueue.get_current_video())
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Function to be called when the track-changed event is triggered
|
-- Function to be called when the track-changed event is triggered
|
||||||
function YouTubeQueue.on_track_changed()
|
function YouTubeQueue.on_track_changed()
|
||||||
YouTubeQueue.update_current_index()
|
YouTubeQueue.update_current_index()
|
||||||
print_video_name(YouTubeQueue.get_current_video())
|
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Function to be called when the playback-restart event is triggered
|
-- Function to be called when the playback-restart event is triggered
|
||||||
function YouTubeQueue.on_playback_restart()
|
function YouTubeQueue.on_playback_restart()
|
||||||
YouTubeQueue.update_current_index()
|
YouTubeQueue.update_current_index()
|
||||||
print_video_name(YouTubeQueue.get_current_video())
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user