getmusicbee.com

Support => Developers' Area => MusicBee API => Topic started by: ucynml on August 30, 2015, 08:13:36 AM

Title: RetrieveLyrics
Post by: ucynml on August 30, 2015, 08:13:36 AM
Hi

I want to use TrackTitle, Artist and AlbumArtist to retrieve lyrics.

public string RetrieveLyrics(string sourceFileUrl, string artist, string trackTitle, string album, bool synchronisedPreferred, string provider)

RetrieveLyrics doesn't support AlbumArtist and I tried to get AlbumArtist from sourceFileUrl.
But sourceFileUrl always returns null.

Any help appreciated
Title: Re: RetrieveLyrics
Post by: Steven on August 30, 2015, 09:19:33 AM
the artist is always passed as the parameter.
if you want album artist (although thats not what i would expect to use for retrieving lyrics) then your plugin could use the API to query the album arrtist tag for the current playing song
Title: Re: RetrieveLyrics
Post by: ucynml on August 30, 2015, 02:20:07 PM
Thanks Steven
my plugin should work properly.
albumArtist = mbApiInterface.NowPlaying_GetFileTag(MetaDataType.AlbumArtist);
Title: Re: RetrieveLyrics
Post by: redwing on December 03, 2016, 04:31:47 AM
Does this return trackTitle value with all parts enclosed with brackets removed for lyrics retrieval?
If that's the case, can you support an additional parameter to get full title for lyrics retrieval?
Title: Re: RetrieveLyrics
Post by: redwing on December 15, 2016, 06:01:40 AM
In case I wasn't clear, I'm asking again. Is it possible to retrieve lyrics using full title regardless of brackets used in title?
Title: Re: RetrieveLyrics
Post by: Steven on December 15, 2016, 07:59:24 AM
MB strips the brackets and text within the bracket from the track title before calling the lyrics api. There is no way to control that, although i could add support for the plugin to indicate it will handle that. I would only do that if i knew a lyrics plugin developer would make use of the change
Title: Re: RetrieveLyrics
Post by: redwing on December 15, 2016, 08:21:18 AM
That's what I guessed. I'm trying to update Lyrics Reloaded plugin as far as I could manage. I'd appreciate if you support lyrics retrieval with full title.