From d9eacbda3c5bc3b6d3a7c15f8c47a0657ef7e683 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 14 Dec 2015 02:11:11 +0000 Subject: player: show "tracklist" hash with summary info with "current" This allows clients to quickly query tracklist size/position/shuffle/random info. --- lib/dtas/player/client_handler.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/dtas/player/client_handler.rb') diff --git a/lib/dtas/player/client_handler.rb b/lib/dtas/player/client_handler.rb index 17cd6c3..a27e4f5 100644 --- a/lib/dtas/player/client_handler.rb +++ b/lib/dtas/player/client_handler.rb @@ -312,6 +312,7 @@ module DTAS::Player::ClientHandler # :nodoc: h end end + tmp['tracklist'] = @tl.to_hsh(false) io.emit(tmp.to_yaml) end -- cgit v1.2.3-24-ge0c7