Everything goes through loadItem; Options now provide 'full' switch for full asset on demand

This commit is contained in:
James Barnsley
2020-09-09 21:30:47 +12:00
parent 3e4fdd2c2f
commit a4fd0cd8e5
14 changed files with 321 additions and 308 deletions

View File

@ -34,12 +34,14 @@ class Track extends React.Component {
const {
uri,
track,
coreActions: { loadTrack },
coreActions: {
loadItem,
},
genius_authorized,
geniusActions: { findTrackLyrics },
} = this.props;
loadTrack(uri);
loadItem(uri);
if (track) {
this.setWindowTitle(track);
@ -60,7 +62,7 @@ class Track extends React.Component {
genius_authorized,
lastfm_authorized,
coreActions: {
loadTrack,
loadItem,
},
geniusActions: {
findTrackLyrics,
@ -71,7 +73,7 @@ class Track extends React.Component {
} = this.props;
if (prevUri !== uri) {
loadTrack(uri);
loadItem(uri);
if (genius_authorized && track.artists) {
findTrackLyrics(track);