Playlist display (command "list"/"playlist") can generate too long messages, commenting out for now.

develop
Icedream 2015-10-27 23:55:54 +01:00
parent 18b7d82964
commit 7966bfb056
1 changed files with 2 additions and 0 deletions

View File

@ -233,6 +233,7 @@ ts3clientService.on "started", (ts3proc) =>
when "empty", "clear" when "empty", "clear"
vlc.playlist.clear() vlc.playlist.clear()
ts3query.sendtextmessage args.targetmode, invoker.id, "Cleared the playlist." ts3query.sendtextmessage args.targetmode, invoker.id, "Cleared the playlist."
###
when "list", "playlist" when "list", "playlist"
message = "Currently there are #{vlc.playlist.items.count} tracks are in the playlist" message = "Currently there are #{vlc.playlist.items.count} tracks are in the playlist"
message += if vlc.playlist.items.count > 0 then ":\n" else "." message += if vlc.playlist.items.count > 0 then ":\n" else "."
@ -244,6 +245,7 @@ ts3clientService.on "started", (ts3proc) =>
if vlc.playlist.currentItem == i if vlc.playlist.currentItem == i
message += "[/B][/COLOR]" message += "[/B][/COLOR]"
ts3query.sendtextmessage args.targetmode, invoker.id, message ts3query.sendtextmessage args.targetmode, invoker.id, message
###
when "enqueue", "add", "append" when "enqueue", "add", "append"
inputBB = paramline.trim() inputBB = paramline.trim()
input = (removeBB paramline).trim() input = (removeBB paramline).trim()