[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)))
(if (not (seq-empty-p title))
(cond
((and (not (seq-empty-p composer))
(not (seq-empty-p performer)))
(if (string= composer performer)
(format "“%s” by %s"
title composer)
(format "“%s” by %s, performed by %s"
title
composer
performer)))
((not (seq-empty-p composer))
(if (seq-empty-p performer)
(format "“%s” by %s" title composer)
(if (string= composer performer)
(format "“%s” by %s"
title composer)
(format "“%s” by %s, performed by %s"
title
composer
performer))))
((not (seq-empty-p artist))
(format "“%s” by %s" title artist))
(t