[EMMS] Remove common prefix from tracks with not metadata

This commit is contained in:
Daniel - 2017-08-18 17:43:45 +02:00
parent 00829a79d1
commit 2cd264d7ef
Signed by: dbo
GPG Key ID: 4F63DB96D45AA9C6
1 changed files with 4 additions and 2 deletions

View File

@ -138,8 +138,10 @@ This function can be used as a value for `emms-track-description-function."
performer)))
((not (seq-empty-p artist))
(format "“%s” by %s" title artist))
(t title))
(emms-track-simple-description track)))
(t
title))
(string-remove-prefix (expand-file-name emms-source-file-default-directory)
(emms-track-simple-description track))))
(note (if (seq-empty-p note)
""
(concat " [" note "]"))))