Add "albumartist" tag support for vorbis (flac). (Thanks SF user shimikano)

This commit is contained in:
Justin Maggard 2014-02-03 11:47:16 -08:00
parent d86fd22655
commit 582dd80f3b

View File

@ -193,7 +193,7 @@ vc_scan(struct song_metadata *psong, const char *comment, const size_t length)
// ALBUM, ARTIST, PUBLISHER, COPYRIGHT, DISCNUMBER, ISRC, EAN/UPN, LABEL, LABELNO, // ALBUM, ARTIST, PUBLISHER, COPYRIGHT, DISCNUMBER, ISRC, EAN/UPN, LABEL, LABELNO,
// LICENSE, OPUS, SOURCEMEDIA, TITLE, TRACKNUMBER, VERSION, ENCODED-BY, ENCODING, // LICENSE, OPUS, SOURCEMEDIA, TITLE, TRACKNUMBER, VERSION, ENCODED-BY, ENCODING,
// -- foollowing tags are muliples // -- following tags are muliples
// COMPOSER, ARRANGER, LYRICIST, AUTHOR, CONDUCTOR, PERFORMER, ENSEMBLE, PART // COMPOSER, ARRANGER, LYRICIST, AUTHOR, CONDUCTOR, PERFORMER, ENSEMBLE, PART
// PARTNUMBER, GENRE, DATE, LOCATION, COMMENT // PARTNUMBER, GENRE, DATE, LOCATION, COMMENT
if(!strncasecmp(strbuf, "ALBUM=", 6)) if(!strncasecmp(strbuf, "ALBUM=", 6))
@ -210,6 +210,15 @@ vc_scan(struct song_metadata *psong, const char *comment, const size_t length)
{ {
psong->contributor_sort[ROLE_ARTIST] = strdup(strbuf + 11); psong->contributor_sort[ROLE_ARTIST] = strdup(strbuf + 11);
} }
else if(!strncasecmp(strbuf, "ALBUMARTIST=", 12))
{
if( *(strbuf+12) )
psong->contributor[ROLE_BAND] = strdup(strbuf + 12);
}
else if(!strncasecmp(strbuf, "ALBUMARTISTSORT=", 16))
{
psong->contributor_sort[ROLE_BAND] = strdup(strbuf + 16);
}
else if(!strncasecmp(strbuf, "TITLE=", 6)) else if(!strncasecmp(strbuf, "TITLE=", 6))
{ {
if( *(strbuf+6) ) if( *(strbuf+6) )