branch: externals/ampc
commit cc7f4c8432aae976c114aea76eb54754f89c4dc2
Author: Christopher Schmidt <christop...@ch.ristopher.com>
Commit: Christopher Schmidt <christop...@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