getPlaylist method

Future<PlaylistFull> getPlaylist(
  1. String playlistId
)

Retrieves detailed information about a playlist given its playlist ID.

Implementation

Future<PlaylistFull> getPlaylist(String playlistId) async {
  if (playlistId.startsWith("PL")) {
    playlistId = "VL$playlistId";
  }

  final data =
      await constructRequest("browse", body: {"browseId": playlistId});

  return PlaylistParser.parse(data, playlistId);
}