summaryrefslogtreecommitdiff
path: root/playlist.c
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2009-07-20 23:04:53 +0200
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2009-07-20 23:04:53 +0200
commit12e6cd1f692ac370a970e6d80f249b7947e28d2f (patch)
treecb41402df93eb8d60ad3de45870e4149a9fac15a /playlist.c
parent8896910dcd4d6069f0447ec5bc42edb48ae689c7 (diff)
id3 tags support WIP
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);