getAlbumFromAlbumUrl method
- String url
Get album from a Spotify Album URL / URI.
Implementation
Future<Album> getAlbumFromAlbumUrl(String url) async {
var album = await _spotifyEngine.albums.get(SpotifyEngine.extractId(url));
return Album(
name: album.name!,
artist: album.artists?.first.name ?? '',
albumUrl: 'https://open.spotify.com/album/${album.id!}',
artUrl: album.images?.first.url ?? '',
);
}