diff options
Diffstat (limited to 'playlist.c')
-rw-r--r-- | playlist.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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); |