summaryrefslogtreecommitdiff
path: root/playlist.c
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2011-02-23 20:19:58 +0100
committerGravatar waker <wakeroid@gmail.com>2011-02-23 20:20:15 +0100
commit910d96dff0ce318c75cab9c93b682ce2b6e95e30 (patch)
treeed6c5de4dee0eba0eb1d8562a2d15141270c4956 /playlist.c
parent503731eba3ce7ea364d83cf56a44097edc699612 (diff)
improved/fixed handling of toplevel performer in cuesheets
Diffstat (limited to 'playlist.c')
-rw-r--r--playlist.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/playlist.c b/playlist.c
index 0f74e36a..97e9f072 100644
--- a/playlist.c
+++ b/playlist.c
@@ -873,9 +873,12 @@ pl_process_cue_track (playItem_t *after, const char *fname, playItem_t **prev, c
it->filetype = ftype;
if (performer[0]) {
pl_add_meta (it, "artist", performer);
+ if (albumperformer[0]) {
+ pl_add_meta (it, "albumartist", albumperformer);
+ }
}
- if (albumperformer) {
- pl_add_meta (it, "albumartist", albumperformer);
+ else if (albumperformer[0]) {
+ pl_add_meta (it, "artist", albumperformer);
}
if (albumtitle[0]) {
pl_add_meta (it, "album", albumtitle);