getPlaylistFromPlaylistUrl method
- String url
Get the playlists from a Spotify Playlist URL / URI.
Implementation
Future<Playlist> getPlaylistFromPlaylistUrl(String url) async {
var playlist = await _spotifyEngine.playlists.get(SpotifyEngine.extractId(url));
return Playlist(
name: playlist.name!,
user: playlist.owner!.displayName!,
url: 'https://open.spotify.com/playlist/${playlist.id!}',
);
}