diff --git a/mumbledj/song_queue.lua b/mumbledj/song_queue.lua index bd45b46..762690c 100644 --- a/mumbledj/song_queue.lua +++ b/mumbledj/song_queue.lua @@ -53,7 +53,7 @@ function getYoutubeInfo(id, username) id = id, title = name, duration = string.format("%d:%02d", duration / 60, duration % 60), - thumbnail = thumbnail + thumbnail = thumbnail, username = username } end @@ -83,4 +83,8 @@ function SongQueue.getNextSong(url) end +function SongQueue.getLength() + return song_queue:length() +end + return SongQueue