about summary refs log tree commit homepage
path: root/bin/dtas-console
diff options
context:
space:
mode:
Diffstat (limited to 'bin/dtas-console')
-rwxr-xr-xbin/dtas-console3
1 files changed, 1 insertions, 2 deletions
diff --git a/bin/dtas-console b/bin/dtas-console
index 5765cbd..1494bfb 100755
--- a/bin/dtas-console
+++ b/bin/dtas-console
@@ -199,9 +199,8 @@ begin
     Curses.clrtoeol
     cur_vol = rg['volume'] || 1.0
     extra = [ "volume=#{cur_vol}" ]
-    repeat = 'false'
     tl = cur['tracklist'] || {}
-    extra << "repeat=#{tl['repeat'] || 'false'}"
+    %w(repeat shuffle).each { |x| extra << "#{x}=#{tl[x] || 'false'}" }
     trim = cur['trim'] || 'off'
     extra << "trim=#{trim}"
     Curses.addstr(extra.join(' '))