Esempio n. 1
0
        /// <summary>
        /// Return a textual description of the status of the fetch request
        /// </summary>
        /// <param name="song"></param>
        /// <returns></returns>
        public string GetStatusString(Song song)
        {
            LyricsFetchStatus status = this.GetStatus(song);

            switch (status)
            {
            case LyricsFetchStatus.NotFound:
                return("Not found");

            case LyricsFetchStatus.Fetching:
                FetchRequestData data = this.GetFetchRequestData(song);
                if (data != null)
                {
                    ILyricsSource source = data.Source;
                    if (source != null)
                    {
                        return(String.Format("Trying {0}...", source.Name));
                    }
                }
                return("Trying ...");

            default:
                return(status.ToString());
            }
        }