Closed kulkulkul closed 7 years ago
Hi
This is not an issue. The getAlbumTracks method is using the Spotify Web API endpoint of
GET /albums/{id}/tracks
.
When looking at the endpoint guide, we can see that this returns the tracks simplified model which does not contain an album attribute, therefore there is no image to be located. The current getAlbumTracks method is using a Track model when it should instead be using the TrackSimple model.
If you require the album image, I suggest using the getAlbum method which uses the API endpoint of
GET /albums/{id}
Using, the input of the album id as you had previously, but instead returns a full Album model which contains a TrackSimple model for each track in the album.
Hi.
In case "success" method of getAlbumTracks(), trackPager.items don't have album's image. example,
Log.d("albumurl",trackPager.items.get(0).album.images.get(0).url)
When i write source above and run myapp, a nullpointerexception occurs like this.