emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/ampc cc7f4c8432 031/111: Alias unspecified tags in ampc


From: Stefan Monnier
Subject: [elpa] externals/ampc cc7f4c8432 031/111: Alias unspecified tags in ampc-status.
Date: Tue, 20 Feb 2024 18:16:38 -0500 (EST)

branch: externals/ampc
commit cc7f4c8432aae976c114aea76eb54754f89c4dc2
Author: Christopher Schmidt <christopher@ch.ristopher.com>
Commit: Christopher Schmidt <christopher@ch.ristopher.com>

    Alias unspecified tags in ampc-status.
---
 ampc.el | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/ampc.el b/ampc.el
index 09e74c8799..e3121f8149 100644
--- a/ampc.el
+++ b/ampc.el
@@ -1634,9 +1634,11 @@ If ARG is omitted, use the selected entries in the 
current buffer."
                          "\n"
                          (when (equal state "play")
                            (concat "Playing:   "
-                                   (cdr (assoc "Artist" ampc-status))
+                                   (or (cdr-safe (assoc "Artist" ampc-status))
+                                       "[Not Specified]")
                                    " - "
-                                   (cdr (assoc "Title" ampc-status))
+                                   (or (cdr-safe (assoc "Title" ampc-status))
+                                       "[Not Specified]")
                                    "\n"))
                          "Volume:    " (cdr (assoc "volume" ampc-status)) "\n"
                          "Crossfade: " (cdr (assoc "xfade" ampc-status))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]