Whenever music was player via search argument and during the song when play command was again invoked with playlist_name argument then a all playlist track was skipped and ended up playing last track in playlist.
Potential Reason: When such thing was performed then this might ends up with multiple track end event get dispatched (might be meta data fetching process end would be marked as track end)
Solution: Before popping track form queue in on_track_end handler, placing a check like if event.player.reason == ReasonType.REPLACE: return works
Whenever music was player via
search
argument and during the song when play command was again invoked withplaylist_name
argument then a all playlist track was skipped and ended up playing last track in playlist.Potential Reason: When such thing was performed then this might ends up with multiple track end event get dispatched (might be meta data fetching process end would be marked as track end)
Solution: Before popping track form queue in
on_track_end
handler, placing a check likeif event.player.reason == ReasonType.REPLACE: return
works