Musicbrainz is out, Discogs is in
This commit is contained in:
@ -12,7 +12,7 @@ var spotifyActions = require('../spotify/actions.js');
|
||||
var pusherActions = require('../pusher/actions.js');
|
||||
var googleActions = require('../google/actions.js');
|
||||
var lastfmActions = require('../lastfm/actions.js');
|
||||
var musicbrainzActions = require('../musicbrainz/actions.js');
|
||||
var discogsActions = require('../discogs/actions.js');
|
||||
|
||||
const MopidyMiddleware = (function(){
|
||||
|
||||
@ -2150,10 +2150,14 @@ const MopidyMiddleware = (function(){
|
||||
|
||||
store.dispatch(coreActions.artistLoaded(artist));
|
||||
|
||||
// Load supprting information from LastFM and Musicbrainz
|
||||
// Load supprting information from LastFM and Discogs
|
||||
var existing_artist = store.getState().core.artists[artist.uri];
|
||||
if (existing_artist) {
|
||||
|
||||
if (!existing_artist.images) {
|
||||
store.dispatch(discogsActions.getArtistImages(artist.uri, artist));
|
||||
}
|
||||
|
||||
// Get biography and other stats from LastFM
|
||||
if (!existing_artist.biography){
|
||||
// TODO: Move this condition into lastfmActions
|
||||
|
||||
Reference in New Issue
Block a user