public void OnUpdateArtistInfoCompleted(ArtistInfoRequest request, Song song)
 {
   if (request.Equals(_lastArtistRequest))
   {
     GUIGraphicsContext.form.Invoke(new ArtistInfoCompletedDelegate(DoUpdateArtistInfo), new object[] {request, song});
   }
   else
   {
     Log.Warn("NowPlaying.OnUpdateArtistInfoCompleted: unexpected response for request: {0}", request.Type);
   }
 }
예제 #2
0
 public void OnUpdateArtistCoverCompleted(ArtistInfoRequest request, Song song)
 {
   if (request.Equals(_lastArtistCoverRequest))
   {
     string ThumbFileName = Util.Utils.GetCoverArtName(Thumbs.MusicArtists,
                                                       AudioscrobblerBase.CurrentPlayingSong.Artist);
     // If the download was unsuccessful or disabled in config then do not remove a possibly present placeholder by specifing a not existing file
     if (Util.Utils.FileExistsInCache(ThumbFileName))
     {
       GUIGraphicsContext.form.Invoke(new ThreadUpdateThumb(SetThumbnails), new object[] {ThumbFileName});
     }
   }
   else
   {
     Log.Warn("NowPlaying.OnUpdateArtistInfoCompleted: unexpected response for request: {0}", request.Type);
   }
 }