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)