Menu

#63 BAND Tag

open
nobody
None
5
2005-08-20
2005-08-20
Anonymous
No

Unfortunately, some programs use the BAND tag instead
of the ARTIST tag. Ok only MS' crappy Media Center does
this, but anyway I think a feature to save the BAND tag
instead or in addition to the ARTIST tag would be nice.
I've made a quick hack to ID3_AddArtist to do this (see
below), but maybe you could do implement a clean way to
do this in the next version?

ID3_Frame* ID3_AddArtist(ID3_Tag *tag, const char
*text, bool replace)
{
ID3_Frame* frame = NULL;
if (NULL != tag && NULL != text && strlen(text) > 0)
{
if (replace)
{
ID3_RemoveArtists(tag);
}
if (replace ||
(tag->Find(ID3FID_LEADARTIST) == NULL &&
tag->Find(ID3FID_BAND) == NULL &&
tag->Find(ID3FID_CONDUCTOR) == NULL &&
tag->Find(ID3FID_COMPOSER) == NULL))
{
frame = new ID3_Frame(ID3FID_LEADARTIST);
if (frame)
{
frame->GetField(ID3FN_TEXT)->Set(text);
tag->AttachFrame(frame);
}
// DIRTY HACK:
frame = new ID3_Frame(ID3FID_BAND);
if (frame)
{
frame->GetField(ID3FN_TEXT)->Set(text);
tag->AttachFrame(frame);
}
}
}

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.