Formatting images - need to merge mopidy fdigester with general formatter
This commit is contained in:
@ -522,9 +522,10 @@ const CoreMiddleware = (function(){
|
||||
}
|
||||
|
||||
// Copy the images to the track
|
||||
/*
|
||||
if (raw_track.album.images){
|
||||
track.images = helpers.digestMopidyImages(store.getState().mopidy, raw_track.album.images);
|
||||
}
|
||||
}*/
|
||||
}
|
||||
|
||||
if (raw_track.artists && raw_track.artists.length > 0){
|
||||
@ -543,6 +544,8 @@ const CoreMiddleware = (function(){
|
||||
tracks_loaded.push(track);
|
||||
};
|
||||
|
||||
action.tracks = tracks_loaded;
|
||||
|
||||
if (artists_loaded.length > 0){
|
||||
store.dispatch(coreActions.artistsLoaded(artists_loaded));
|
||||
}
|
||||
@ -550,8 +553,6 @@ const CoreMiddleware = (function(){
|
||||
store.dispatch(coreActions.albumsLoaded(albums_loaded));
|
||||
}
|
||||
|
||||
action.tracks = tracks_loaded;
|
||||
|
||||
next(action);
|
||||
break;
|
||||
|
||||
@ -567,10 +568,10 @@ const CoreMiddleware = (function(){
|
||||
if (albums_index[album.uri]){
|
||||
album = Object.assign({}, albums_index[album.uri], album);
|
||||
}
|
||||
|
||||
/*
|
||||
if (raw_album.images && raw_album.images.length > 0){
|
||||
album.images = helpers.digestMopidyImages(store.getState().mopidy, raw_album.images);
|
||||
}
|
||||
}*/
|
||||
|
||||
if (raw_album.tracks){
|
||||
album.tracks_uris = helpers.arrayOf('uri', raw_album.tracks);
|
||||
|
||||
Reference in New Issue
Block a user