Beispiel #1
0
        // return lyrics for the requested artist/title from the requested provider
        // only required if PluginType = LyricsRetrieval
        // return null if no lyrics are found
        public string RetrieveLyrics(string sourceFileUrl, string artist, string trackTitle, string album, bool synchronisedPreferred, string provider)
        {
            if (!provider.Contains("LocalLyricsLoader"))
            {
                return(null);
            }
            if (sourceFileUrl == "")
            {
                sourceFileUrl = mbApiInterface.NowPlaying_GetFileUrl();
            }
            ;
            var loader = LoaderManager.GetLyricsLoader(provider.Replace("(LocalLyricsLoader)", ""));
            var lyrics = loader.RetrieveLyrics(sourceFileUrl, artist, trackTitle, album, synchronisedPreferred, provider);

            return(lyrics);
        }
Beispiel #2
0
 public string[] GetProviders()
 {
     return(LoaderManager.GetLyricsLoaderNames().Select(n => $"{n}(LocalLyricsLoader)").ToArray());
 }