From c8b10769a298f507928991bb5c614ce1cdb3c6f4 Mon Sep 17 00:00:00 2001 From: Ron Pedde Date: Thu, 11 May 2006 07:06:00 +0000 Subject: [PATCH] Oops.. move the wma tags to the right place --- src/scan-wma.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/scan-wma.c b/src/scan-wma.c index 4c15ddc5..c753b549 100644 --- a/src/scan-wma.c +++ b/src/scan-wma.c @@ -446,11 +446,12 @@ int wma_parse_extended_content_description(int fd,int size, MP3FILE *pmp3) { } } else if(strcasecmp(descriptor_name,"wm/albumartist")==0) { /* get first one only */ - if(!pmp3->composer) { - pmp3->composer = descriptor_byte_value; + if(!pmp3->orchestra) { + pmp3->orchestra = descriptor_byte_value; descriptor_byte_value = NULL; } } else if(strcasecmp(descriptor_name,"author") == 0) { + /* get first one only */ if(!pmp3->artist) { pmp3->artist = descriptor_byte_value; descriptor_byte_value = NULL; @@ -480,12 +481,12 @@ int wma_parse_extended_content_description(int fd,int size, MP3FILE *pmp3) { pmp3->track = track; } - if((!pmp3->artist) && (pmp3->composer)) { - pmp3->artist = strdup(pmp3->composer); + if((!pmp3->artist) && (pmp3->orchestra)) { + pmp3->artist = strdup(pmp3->orchestra); } - if((pmp3->artist) && (!pmp3->composer)) { - pmp3->composer = pmp3->artist; + if((pmp3->artist) && (!pmp3->orchestra)) { + pmp3->orchestra = pmp3->artist; } return TRUE;