From cb29844d9c9744b75856e38af259fa0004cea2eb Mon Sep 17 00:00:00 2001 From: Jonathan Bernard Date: Mon, 4 Apr 2016 06:17:19 -0500 Subject: [PATCH] Added reporting of the repeat mode. --- .../jdbernard/wdiwtlt/cli/CommandLineInterface.groovy | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/cli/src/main/groovy/com/jdbernard/wdiwtlt/cli/CommandLineInterface.groovy b/cli/src/main/groovy/com/jdbernard/wdiwtlt/cli/CommandLineInterface.groovy index 7c547f2..de58967 100644 --- a/cli/src/main/groovy/com/jdbernard/wdiwtlt/cli/CommandLineInterface.groovy +++ b/cli/src/main/groovy/com/jdbernard/wdiwtlt/cli/CommandLineInterface.groovy @@ -889,14 +889,24 @@ Configuration: private def processRepeat(String option) { switch(option) { + case 'null': + def mode = vlcj.mediaListPlayer.mode + msg("Repeat mode is: " + + mode == MediaListPlayerMode.REPEAT ? 'all.' : + (mode == MediaListPlayerMode.LOOP ? 'one.' : 'off.')) + return + case 'off': vlcj.mediaListPlayer.mode = MediaListPlayerMode.DEFAULT + msg "Repeat set to off." break case 'all': vlcj.mediaListPlayer.mode = MediaListPlayerMode.REPEAT + msg "Repeat set to all." break case 'one': vlcj.mediaListPlayer.mode = MediaListPlayerMode.LOOP + msg "Repeat set to one." break default: invalidOptionsErr('repeat') } }