Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Revised last fix to improve results

  • Loading branch information...
commit 438da6727dc37c37f6efd3647c2fc2cbbce2fcfc 1 parent 9b4e7c6
@jamesonuk jamesonuk authored
Showing with 5 additions and 8 deletions.
  1. +5 −8 mediaportal/WindowPlugins/GUIMusic/GUIMusicBaseWindow.cs
View
13 mediaportal/WindowPlugins/GUIMusic/GUIMusicBaseWindow.cs
@@ -1168,11 +1168,10 @@ protected virtual void ShowArtistInfo(string artistName, string albumName)
dlgProgress.SetPercentage(80);
dlgProgress.Progress();
}
- var ai = artistInfo.Get();
// set values to actual artist to ensure they match track data
// rather than values that might be returned from allmusic.com
- ai.Artist = artistName;
- m_database.AddArtistInfo(ai);
+ artistInfo.Artist = artistName;
+ m_database.AddArtistInfo(artistInfo.Get());
errorEncountered = false;
}
}
@@ -1471,13 +1470,11 @@ public void ShowAlbumInfo(int parentWindowID, string artistName, string albumNam
dlgProgress.SetPercentage(80);
dlgProgress.Progress();
}
- var ai = albumInfo.Get();
// set values to actual artist and album name to ensure they match track data
// rather than values that might be returned from allmusic.com
- ai.Artist = artistName;
- ai.AlbumArtist = artistName;
- ai.Album = albumName;
- m_database.AddAlbumInfo(ai);
+ albumInfo.Artist = artistName;
+ albumInfo.Title = albumName;
+ m_database.AddAlbumInfo(albumInfo.Get());
errorEncountered = false;
}
Please sign in to comment.
Something went wrong with that request. Please try again.