summaryrefslogtreecommitdiff
path: root/playlist.c
diff options
context:
space:
mode:
Diffstat (limited to 'playlist.c')
-rw-r--r--playlist.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/playlist.c b/playlist.c
index 2918384b..90738ea9 100644
--- a/playlist.c
+++ b/playlist.c
@@ -849,6 +849,10 @@ pl_add_meta (playItem_t *it, const char *key, const char *value) {
void
pl_format_item_display_name (playItem_t *it, char *str, int len) {
+ const char *artist = pl_find_meta (it, "artist");
+ const char *title = pl_find_meta (it, "title");
+ snprintf (str, len, "%s - %s", artist, title);
+#if 0
// artist - title
const char *track = pl_find_meta (it, "track");
const char *artist = pl_find_meta (it, "artist");
@@ -891,6 +895,7 @@ pl_format_item_display_name (playItem_t *it, char *str, int len) {
strncpy (str, pname, pext-pname);
str[pext-pname] = 0;
}
+#endif
}
const char *