From b2955885cca4b4f91bca63fd2175929f1c684077 Mon Sep 17 00:00:00 2001 From: jao Date: Fri, 14 Oct 2022 03:53:22 +0100 Subject: jao-random-album-p -> -active (and don't trigger it at startup) --- lib/media/jao-mpc.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/media/jao-mpc.el') diff --git a/lib/media/jao-mpc.el b/lib/media/jao-mpc.el index 9cdd5bd..74f9b5b 100644 --- a/lib/media/jao-mpc.el +++ b/lib/media/jao-mpc.el @@ -116,7 +116,7 @@ (let ((status (or (jao-mpc-status port) ""))) (setq jao-mpc-minibuffer-str (if (string= "playing" status) (jao-mpc--current-str port) "")) - (when (and jao-random-album-p + (when (and jao-random-album-active (string= status "paused") (string= "0\n" (jao-mpc--cmd "status %songpos%" port))) (jao-random-album-next))) @@ -301,7 +301,7 @@ #'jao-mpc--add-and-play #'jao-mpc-stop jao-notify-audio-icon) - (jao-mpc-connect) + (let ((jao-random-album-active nil)) (jao-mpc-connect)) (when secondary-port (jao-mpc-connect secondary-port)) (when priority (if (> priority 0) -- cgit v1.2.3