From 64247079b9ae4ec58e801658ba62c2a64fee1e72 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 25 Jan 2016 11:52:43 +0000 Subject: player: support "consume" mode for tracklist When activated, this boolean deletes a song from the tracklist after it is played. --- bin/dtas-console | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin/dtas-console') diff --git a/bin/dtas-console b/bin/dtas-console index 1494bfb..4199583 100755 --- a/bin/dtas-console +++ b/bin/dtas-console @@ -200,7 +200,7 @@ begin cur_vol = rg['volume'] || 1.0 extra = [ "volume=#{cur_vol}" ] tl = cur['tracklist'] || {} - %w(repeat shuffle).each { |x| extra << "#{x}=#{tl[x] || 'false'}" } + %w(repeat shuffle consume).each { |x| extra << "#{x}=#{tl[x] || 'false'}" } trim = cur['trim'] || 'off' extra << "trim=#{trim}" Curses.addstr(extra.join(' ')) -- cgit v1.2.3-24-ge0c7