diff options
author | waker <wakeroid@gmail.com> | 2009-08-19 19:26:37 +0200 |
---|---|---|
committer | waker <wakeroid@gmail.com> | 2009-08-19 19:26:37 +0200 |
commit | 35896557539ab3159e38b105e0099eba5ad42805 (patch) | |
tree | 69fb0a6f05a76525dfbacdedcddeb09b208ad965 /playlist.c | |
parent | bc69de78410090cae38b796d982302e77f928128 (diff) |
license update WIP
Diffstat (limited to 'playlist.c')
-rw-r--r-- | playlist.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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 * |