Start a new topic
Implemented

Download lyrics

I know, you can't ship any lyrics-plug-ins, but it would be great to get the old "Download lyrics"-feature back into Helium 12, so I could migrate my own plug-ins.


3 people like this idea

No API is currently available for downloading of Lyrics so this will need to be created first.

API implemented, more information sent over email.


1 person likes this

Hi Sven/Mikael,


Is there an article describing how to do this?


Regards,

Ranjeet

Hi Ranjeet,


A description of the ILyrics interface and its related classes can be found here:

http://support.imploded.com/solution/articles/9000079298-creating-download-plug-ins


Since we (Imploded Software) are not allowed to ship any actual plug-in with Lyrics we have no "real" example which we can share, but a sample is attached below:

 

    public class LyricsPlugin : IPlugin, ILyrics
    {
        public string Name => "Lyrics Plugin";
        public string Version => "1.0";

        public async Task GetLyrics(PluginLyricsInput input, CancellationToken ct, Action<PluginLyricsResult> updateAction)
        {
            for (var i = 0; i < 5; i++)
            {
                var res = new PluginLyricsResult
                {
                    Artist = input.Artist,
                    Title = input.Title,
                    FoundByPlugin = Name,
                    Lyrics = "Lorem ipsum " + i
                };
                updateAction(res);
            }
        }
    }

 

Cheers! Will look into that later

Does anyone has made a Plugin yet that he would like to share?


1 person likes this
Login or Signup to post a comment