[EMMS] Show compose even if performer is not known

This commit is contained in:
Daniel - 2017-12-17 14:33:28 +01:00
parent 0d67273805
commit 53142f5b1e
Signed by: dbo
GPG Key ID: 4F63DB96D45AA9C6
1 changed files with 10 additions and 9 deletions

View File

@ -123,15 +123,16 @@ This function can be used as a value for `emms-track-description-function."
'face 'emms-browser-track-face))) 'face 'emms-browser-track-face)))
(if (not (seq-empty-p title)) (if (not (seq-empty-p title))
(cond (cond
((and (not (seq-empty-p composer)) ((not (seq-empty-p composer))
(not (seq-empty-p performer))) (if (seq-empty-p performer)
(if (string= composer performer) (format "“%s” by %s" title composer)
(format "“%s” by %s" (if (string= composer performer)
title composer) (format "“%s” by %s"
(format "“%s” by %s, performed by %s" title composer)
title (format "“%s” by %s, performed by %s"
composer title
performer))) composer
performer))))
((not (seq-empty-p artist)) ((not (seq-empty-p artist))
(format "“%s” by %s" title artist)) (format "“%s” by %s" title artist))
(t (t