diff options
author | Eric Wong <normalperson@yhbt.net> | 2013-09-30 00:20:42 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2013-09-30 00:20:42 +0000 |
commit | 1a0a4247b8031ec85536f547d2a66fa031586723 (patch) | |
tree | 82e379e2db8380c822808c0c48dbc2e3974e7a9a | |
parent | 632b3d37736ce0df4f74edb2cdcbb88db4c9e975 (diff) | |
download | dtas-1a0a4247b8031ec85536f547d2a66fa031586723.tar.gz |
Using "tl goto" implies we start playback of the player is idle.
-rw-r--r-- | lib/dtas/player/client_handler.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/dtas/player/client_handler.rb b/lib/dtas/player/client_handler.rb index a44c1b7..91dfada 100644 --- a/lib/dtas/player/client_handler.rb +++ b/lib/dtas/player/client_handler.rb @@ -585,6 +585,9 @@ module DTAS::Player::ClientHandler # :nodoc: offset = msg.shift # may be nil if @tl.go_to(track_id.to_i, offset) _tl_skip + if !(@current || @queue[0] || @paused) + next_source(_next) + end io.emit("OK") else io.emit("MISSING") |