summaryrefslogtreecommitdiffhomepage
path: root/lib/media
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2022-02-02 03:54:52 +0000
committerjao <jao@gnu.org>2022-02-02 03:54:52 +0000
commite80a2fef9627c95186ac2068cc58f082b6ca0729 (patch)
tree65f0c7d122d9f4edd65bd9ba00796e29a3939f4d /lib/media
parent42cf90da66e9ff24939a98139016138905e1b201 (diff)
downloadelibs-e80a2fef9627c95186ac2068cc58f082b6ca0729.tar.gz
elibs-e80a2fef9627c95186ac2068cc58f082b6ca0729.tar.bz2
tweaks for interaction with deezer
Diffstat (limited to 'lib/media')
-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)))