From aa640bb4f920085ea76626d14449f09ec45c146b Mon Sep 17 00:00:00 2001 From: Jonathan Bernard Date: Wed, 1 Jun 2016 11:29:10 -0500 Subject: [PATCH] Stop playBookmak from being updated when a song is paused. --- .../com/jdbernard/wdiwtlt/cli/CommandLineInterface.groovy | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 0200f26..828652e 100644 --- a/cli/src/main/groovy/com/jdbernard/wdiwtlt/cli/CommandLineInterface.groovy +++ b/cli/src/main/groovy/com/jdbernard/wdiwtlt/cli/CommandLineInterface.groovy @@ -393,7 +393,10 @@ Configuration: dismissMsgDate = new Date(new Date().time + msgTimeout) } } } else { drawLeader() - if (curMediaFile && System.currentTimeMillis() > nextBookmarkUpdate) { + if (curMediaFile && + vlcj.mediaListPlayer.mediaPlayer.isPlaying() && + System.currentTimeMillis() > nextBookmarkUpdate) { + playBookmark.playTimeMs = vlcj.mediaListPlayer.mediaPlayer.time library.save(playBookmark)