about summary refs log tree commit homepage
path: root/lib/dtas/player
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2015-12-14 02:11:11 +0000
committerEric Wong <e@80x24.org>2015-12-14 02:11:11 +0000
commitd9eacbda3c5bc3b6d3a7c15f8c47a0657ef7e683 (patch)
tree6a4b2df96ad47cbdb0e0d45b128bf995783368cd /lib/dtas/player
parent6c8504238ddbd96deea577df58c043b95cb1068d (diff)
downloaddtas-d9eacbda3c5bc3b6d3a7c15f8c47a0657ef7e683.tar.gz
This allows clients to quickly query tracklist
size/position/shuffle/random info.
Diffstat (limited to 'lib/dtas/player')
-rw-r--r--lib/dtas/player/client_handler.rb1
1 files changed, 1 insertions, 0 deletions
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