summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2024-03-28 13:48:14 +0000
committerjao <jao@gnu.org>2024-03-28 13:48:14 +0000
commit311f4b998f72a0f03c1ae0792e0ba4c88f9d2dad (patch)
tree626a6f9769183eaffc75d48a436eb0e34848c307
parent512899f6eea55dc72098922a777145a948c66dc2 (diff)
downloadelibs-311f4b998f72a0f03c1ae0792e0ba4c88f9d2dad.tar.gz
elibs-311f4b998f72a0f03c1ae0792e0ba4c88f9d2dad.tar.bz2
mpc tweaks
-rw-r--r--init.el2
-rw-r--r--lib/media/jao-mpc.el4
2 files changed, 3 insertions, 3 deletions
diff --git a/init.el b/init.el
index 4a16614..cea0d2a 100644
--- a/init.el
+++ b/init.el
@@ -2972,7 +2972,7 @@
(lambda ()
(message "%s %s"
(if (jao-mpc-mopidy-p) "mopidy" "mpd")
- (jao-mpc--current-str nil t))
+ (jao-mpc--current-timestr t))
(format "Master %s%%" (jao-mixer-get-level nil t)))
("d" "down" jao-mixer-master-down :transient t)
("u" "up" jao-mixer-master-up :transient t)
diff --git a/lib/media/jao-mpc.el b/lib/media/jao-mpc.el
index 70531e1..de737a3 100644
--- a/lib/media/jao-mpc.el
+++ b/lib/media/jao-mpc.el
@@ -80,10 +80,10 @@
(put-text-property 0 (length str) 'face face str)
str)
-(defun jao-mpc--current-timestr (times &optional current)
+(defun jao-mpc--current-timestr (playing-times &optional current)
(let* ((current (or current (jao-mpc--current)))
(time (alist-get 'totaltime current "")))
- (if times
+ (if playing-times
(format "%s/%s%s"
(alist-get 'currenttime current "")
time