summaryrefslogtreecommitdiffhomepage
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/media/jao-mpris.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/media/jao-mpris.el b/lib/media/jao-mpris.el
index b7e9aea..08b405a 100644
--- a/lib/media/jao-mpris.el
+++ b/lib/media/jao-mpris.el
@@ -94,7 +94,7 @@
(alist-get k (or l jao-mpris--current)))
(defun jao-mpris--set-current (k v)
- (setf (alist-get k jao-mpris--current "" t) v))
+ (when v (setf (alist-get k jao-mpris--current "" t) v)))
(defun jao-mpris--fmt-time (x suffix)
(if x (format "%02d:%02d%s" (/ x 60) (mod x 60) (or suffix "")) ""))
@@ -145,7 +145,7 @@
(defun jao-mpris--handler (_iname properties &rest _args)
(let ((inhibit-message t))
- (message "Receivied properties: %S from %s" properties _iname))
+ (message "Received properties: %S from %s" properties _iname))
(when-let (md (caadr (assoc "Metadata" properties)))
(let ((tno (caadr (assoc "xesam:trackNumber" md)))
(tlt (caadr (assoc "xesam:title" md)))