Still using LastFM, but remove images for artist images (they broke it)

This commit is contained in:
James Barnsley
2019-06-09 15:46:34 +12:00
parent ab8677bb5d
commit db87c3c94d
10 changed files with 38 additions and 28 deletions

View File

@ -2141,9 +2141,11 @@ const MopidyMiddleware = (function(){
store.dispatch(coreActions.artistLoaded(artist));
// load artwork from LastFM
// Load supprting information from LastFM
// Note: This excludes artwork as this was removed from their API
// in May 2019
var existing_artist = store.getState().core.artists[artist.uri];
if (existing_artist && !existing_artist.images){
if (existing_artist && !existing_artist.biography){
if (artist.musicbrainz_id){
store.dispatch(lastfmActions.getArtist(artist.uri, false, artist.musicbrainz_id));
} else {