Adding lastfm artwork lookup to list views; Splitting List into List and ListItem for better granularity

This commit is contained in:
James Barnsley
2019-02-22 13:17:14 +13:00
parent 5350500ff5
commit 33935115ab
6 changed files with 2776 additions and 3276 deletions

View File

@ -63,7 +63,7 @@ class Album extends React.Component{
// We have just received our full album or our album artists
if ((!this.props.album && nextProps.album) || (!this.props.album.artists && nextProps.album.artists)){
if (this.props.album.wiki === undefined){
if (nextProps.album.wiki === undefined && nextProps.artists.length > 0){
this.props.lastfmActions.getAlbum(nextProps.album.uri, nextProps.album.artists[0].name, nextProps.album.name);
}
}