aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuchen Pei <hi@ypei.me>2021-11-26 11:21:02 +1100
committerYuchen Pei <hi@ypei.me>2021-11-26 11:21:02 +1100
commit73abffcfe566a7ec41e3fb7dbfc5d313fb0bc913 (patch)
tree42426547d72f13ffc6a619554ca4a980c13491bb
parent65a598f45728c3d457a08cc2c9359b6a08b1d049 (diff)
Fall back to description property when showing description
-rw-r--r--emms.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/emms.el b/emms.el
index 2186853..92ccea8 100644
--- a/emms.el
+++ b/emms.el
@@ -722,8 +722,10 @@ return the type and the name with a colon in between.
Hex-encoded characters in URLs are replaced by the decoded
character."
(let ((type (emms-track-type track)))
- (cond ((eq 'file type)
- (emms-track-name track))
+ (cond ((emms-track-get track 'description)
+ (emms-track-get track 'description))
+ ((eq 'file type)
+ (emms-track-name track))
((eq 'url type)
(emms-format-url-track-name (emms-track-name track)))
(t (concat (symbol-name type)