summaryrefslogtreecommitdiffhomepage
path: root/lib/media/jao-mpc.el
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2022-10-14 03:53:22 +0100
committerjao <jao@gnu.org>2022-10-14 03:53:22 +0100
commitb2955885cca4b4f91bca63fd2175929f1c684077 (patch)
tree8e8f94d3d43defda3fd17fab33b4cd39c36ef48a /lib/media/jao-mpc.el
parente52e42bca291f947980ea1938185bd3cd8d85d07 (diff)
downloadelibs-b2955885cca4b4f91bca63fd2175929f1c684077.tar.gz
elibs-b2955885cca4b4f91bca63fd2175929f1c684077.tar.bz2
jao-random-album-p -> -active (and don't trigger it at startup)
Diffstat (limited to 'lib/media/jao-mpc.el')
-rw-r--r--lib/media/jao-mpc.el4
1 files changed, 2 insertions, 2 deletions
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)