diff options
author | jao <jao@gnu.org> | 2024-03-28 13:48:14 +0000 |
---|---|---|
committer | jao <jao@gnu.org> | 2024-03-28 13:48:14 +0000 |
commit | 311f4b998f72a0f03c1ae0792e0ba4c88f9d2dad (patch) | |
tree | 626a6f9769183eaffc75d48a436eb0e34848c307 /lib | |
parent | 512899f6eea55dc72098922a777145a948c66dc2 (diff) | |
download | elibs-311f4b998f72a0f03c1ae0792e0ba4c88f9d2dad.tar.gz elibs-311f4b998f72a0f03c1ae0792e0ba4c88f9d2dad.tar.bz2 |
mpc tweaks
Diffstat (limited to 'lib')
-rw-r--r-- | lib/media/jao-mpc.el | 4 |
1 files changed, 2 insertions, 2 deletions
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 |