summaryrefslogtreecommitdiff
path: root/playlist.c
diff options
context:
space:
mode:
Diffstat (limited to 'playlist.c')
-rw-r--r--playlist.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/playlist.c b/playlist.c
index c238c1f7..4f7fcb80 100644
--- a/playlist.c
+++ b/playlist.c
@@ -527,6 +527,15 @@ ps_format_item_display_name (playItem_t *it) {
else if (*artist != '?' && *track != '?' && *album != '?') {
snprintf (it->displayname, MAX_DISPLAY_NAME, "%s. %s - %s", track, artist, album);
}
+ else if (*artist != '?' && *title != '?') {
+ snprintf (it->displayname, MAX_DISPLAY_NAME, "%s - %s", artist, title);
+ }
+ else if (*artist != '?') {
+ snprintf (it->displayname, MAX_DISPLAY_NAME, "%s", artist);
+ }
+ else if (*title != '?') {
+ snprintf (it->displayname, MAX_DISPLAY_NAME, "%s", title);
+ }
else {
//snprintf (it->displayname, MAX_DISPLAY_NAME, "%s", title);
strncpy (it->displayname, it->fname, MAX_DISPLAY_NAME);