From 598db0d296a8c16e181b488040a324f9ae20cc33 Mon Sep 17 00:00:00 2001 From: Warren Dukes Date: Tue, 9 Nov 2004 22:07:01 +0000 Subject: work in progress git-svn-id: https://svn.musicpd.org/mpd/branches/r2562-metadata-handling-rewrite@2566 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/audioOutputs/audioOutput_shout.c | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) (limited to 'src/audioOutputs') diff --git a/src/audioOutputs/audioOutput_shout.c b/src/audioOutputs/audioOutput_shout.c index 8eb4f4672..7f21a73f4 100644 --- a/src/audioOutputs/audioOutput_shout.c +++ b/src/audioOutputs/audioOutput_shout.c @@ -375,9 +375,23 @@ static void myShout_closeDevice(AudioOutput * audioOutput) { static void copyTagToVorbisComment(ShoutData * sd) { if(sd->tag) { - addTag("ARTIST", sd->tag->artist); - addTag("ALBUM", sd->tag->album); - addTag("TITLE", sd->tag->title); + MpdTagItem * item = sd->tag->tagItems; + + while(item && item->type!=TAG_ITEM_END) { + switch(item->type) { + case TAG_ITEM_ARTIST: + addTag("ARTIST", item->value); + break; + case TAG_ITEM_ALBUM: + addTag("ALBUM", item->value); + break; + case TAG_ITEM_TITLE: + addTag("TITLE", item->value); + break; + } + + item++; + } } } -- cgit v1.2.3