getmusicbee.com

Support => Developers' Area => MusicBee API => Topic started by: Mayibongwe on February 21, 2025, 06:40:03 PM

Title: MetaDataType.HasLyrics Not Setting
Post by: Mayibongwe on February 21, 2025, 06:40:03 PM
I apologize in advance for posting this without thorough testing.

From my brief tests, the above field is not doing anything when set using:
mbApi.Library_SetFileTag(mbApi.NowPlaying_GetFileUrl(), MetaDataType.HasLyrics, "Test")

Is it read-only from the API side?

______________

The reason I'm even looking at it is because of:

I've looked and searched and can't find a way to access the "Mark as having no lyrics" option outside the Lyrics tab in the Tag Editor.

So this is all assuming "HasLyrics" has some relation to "Mark as having no lyrics".
If it doesn't, then the whole exercise is futile and there isn't a need to investigate the first half of this post.
Title: Re: MetaDataType.HasLyrics Not Setting
Post by: Steven on February 22, 2025, 12:37:38 AM
setting it to "MarkNoLyrics" should work
Title: Re: MetaDataType.HasLyrics Not Setting
Post by: Mayibongwe on February 22, 2025, 05:04:25 AM
Thanks Steven. Managed to come right with it - function now available here:
https://getmusicbee.com/forum/index.php?topic=41310.0
Title: Re: MetaDataType.HasLyrics Not Setting
Post by: Mayibongwe on February 22, 2025, 05:07:18 AM
Just for curiosity's sake, what's the inverse string for unmarking the option?
I may just add the option while I'm at it. If it's not already implemented, that's fine - no need to go through the trouble.
Title: Re: MetaDataType.HasLyrics Not Setting
Post by: Steven on February 22, 2025, 05:08:35 AM
the way the code is written, any other value