Still using LastFM, but remove images for artist images (they broke it)
This commit is contained in:
@ -60,7 +60,7 @@ export function handleException(message, data = {}, description = null, show_not
|
||||
}
|
||||
if (!description && data.description){
|
||||
description = data.description;
|
||||
} else if (!description && data.error.description){
|
||||
} else if (!description && data.error && data.error.description){
|
||||
description = data.error.description;
|
||||
}
|
||||
return {
|
||||
|
||||
@ -253,7 +253,7 @@ export function getArtist(uri, artist, mbid = false){
|
||||
if (response.artist){
|
||||
var artist = {
|
||||
uri: uri,
|
||||
images: response.artist.image,
|
||||
//images: response.artist.image,
|
||||
mbid: response.artist.mbid,
|
||||
biography: response.artist.bio.content,
|
||||
biography_publish_date: response.artist.bio.published,
|
||||
|
||||
@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user