mirror of
https://github.com/ksyasuda/mpv-youtube-queue.git
synced 2024-10-28 04:44:11 -07:00
remove print from event functions
This commit is contained in:
parent
beeaee28dd
commit
0fd4673029
@ -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
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user