getmusicbee.com

Support => Developers' Area => MusicBee API => Topic started by: c-Row on September 29, 2024, 09:56:49 AM

Title: Add custom performer roles/instruments through Library_SetFileTag
Post by: c-Row on September 29, 2024, 09:56:49 AM
Following this thread (https://getmusicbee.com/forum/index.php?topic=40975.0) I was able to compile a string in my plugin and set the "big four" (artist, guest artist, performer, remixer) through code, but I would like to go beyond that - is it somehow possible to add custom roles/instruments via the API in a similar way?

(https://i.imgur.com/kIBHg65.png)
Title: Re: Add custom performer roles/instruments through Library_SetFileTag
Post by: Mayibongwe on October 01, 2024, 06:31:36 PM
is it somehow possible to add custom roles/instruments via the API in a similar way?
At the moment, I don't think it is. And from my findings here, it appeared that writing to <artist: role> wasn't (officially) permitted:
https://getmusicbee.com/forum/index.php?topic=41438.msg225265#msg225265

So have a look at the AT&RT plugin source code. Maybe there's some hidden trick to adding other artist tags too.
Title: Re: Add custom performer roles/instruments through Library_SetFileTag
Post by: c-Row on October 02, 2024, 05:06:18 PM
That's what I did but I could not make any sense of it. I see it's possible since AT&RT can copy the full set of multiple artists but I gave up after two hours of trying to understand what happens.
Title: Re: Add custom performer roles/instruments through Library_SetFileTag
Post by: c-Row on October 02, 2024, 10:32:06 PM
Well, paint me blue and call me a smurf.  ???

(https://i.imgur.com/lpMYTyf.png)

Turns out it was the Performer tag in the multi artist string after all, and putting the role in brackets right after the artist's name is all it takes.
Title: Re: Add custom performer roles/instruments through Library_SetFileTag
Post by: Mayibongwe on October 03, 2024, 06:29:36 AM
Turns out it was the Performer tag in the multi artist string after all, and putting the role in brackets right after the artist's name is all it takes.
Simple as that huh...nice find c-Row!