Routing all fetchers to type-specific call; Mopidy getUris to handle unknown ones

This commit is contained in:
James Barnsley
2021-01-14 19:35:30 +13:00
parent 4151f4fc18
commit 5778706df7
22 changed files with 644 additions and 399 deletions

View File

@ -43,7 +43,7 @@ class Album extends React.Component {
uri,
album,
coreActions: {
loadItem,
loadAlbum,
},
lastfmActions: {
getAlbum,
@ -51,7 +51,7 @@ class Album extends React.Component {
} = this.props;
this.setWindowTitle();
loadItem(uri, { full: true });
loadAlbum(uri, { full: true });
if (album) {
if (album.artists && album.wiki === undefined) {
@ -81,7 +81,7 @@ class Album extends React.Component {
uri,
album,
coreActions: {
loadItem,
loadAlbum,
},
lastfmActions: {
getAlbum,
@ -89,7 +89,7 @@ class Album extends React.Component {
} = this.props;
if (uri !== prevUri) {
loadItem(uri, { full: true });
loadAlbum(uri, { full: true });
}
// We have just received our full album or our album artists