From 48baed6d69f8ab3db1a6ea0f35ad651bfbbdc19d Mon Sep 17 00:00:00 2001 From: Jonathan Bernard Date: Mon, 4 Apr 2016 06:18:35 -0500 Subject: [PATCH] Fixed repeat: loop is all, repeat is one. --- .../jdbernard/wdiwtlt/cli/CommandLineInterface.groovy | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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 de58967..7cd25b0 100644 --- a/cli/src/main/groovy/com/jdbernard/wdiwtlt/cli/CommandLineInterface.groovy +++ b/cli/src/main/groovy/com/jdbernard/wdiwtlt/cli/CommandLineInterface.groovy @@ -889,11 +889,11 @@ Configuration: private def processRepeat(String option) { switch(option) { - case 'null': + case null: def mode = vlcj.mediaListPlayer.mode msg("Repeat mode is: " + - mode == MediaListPlayerMode.REPEAT ? 'all.' : - (mode == MediaListPlayerMode.LOOP ? 'one.' : 'off.')) + mode == MediaListPlayerMode.LOOP ? 'all.' : + (mode == MediaListPlayerMode.REPEAT ? 'one.' : 'off.')) return case 'off': @@ -901,11 +901,11 @@ Configuration: msg "Repeat set to off." break case 'all': - vlcj.mediaListPlayer.mode = MediaListPlayerMode.REPEAT + vlcj.mediaListPlayer.mode = MediaListPlayerMode.LOOP msg "Repeat set to all." break case 'one': - vlcj.mediaListPlayer.mode = MediaListPlayerMode.LOOP + vlcj.mediaListPlayer.mode = MediaListPlayerMode.REPEAT msg "Repeat set to one." break default: invalidOptionsErr('repeat') } }