dirkgroenen / mopidy-mopify

A web client that uses external web services to provide additional features and a more “complete” music experience.
Apache License 2.0
447 stars 44 forks source link

Cannot read property 'uri' of undefined #212

Closed mikey0000 closed 7 years ago

mikey0000 commented 7 years ago

loadTracks() and getCoverImage() don't function correctly.

function getCoverImage(track) {
      Spotify.getTrack(track.uri).then(function (data) { //track is undefined
        $scope.coverImage = data.album.images[0].url;
      });
    }

I tested this with searching for foo fighters and trying to play or view an album

mopify version 1.6.0

mikey0000 commented 7 years ago

Turns out I'm a muppet and didn't configure mopidy-spotify, though it would be good to place that in the docs.