From 311f4b998f72a0f03c1ae0792e0ba4c88f9d2dad Mon Sep 17 00:00:00 2001 From: jao Date: Thu, 28 Mar 2024 13:48:14 +0000 Subject: mpc tweaks --- lib/media/jao-mpc.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/media') 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 -- cgit v1.2.3