Merge pull request #1041 from dnlmlr/fix-get-playlist

Fix `SpClient::get_playlist` endpoint generation
This commit is contained in:
Roderick van Domburg 2022-08-04 07:05:48 +02:00 committed by GitHub
commit 35f633c93a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -408,7 +408,7 @@ impl SpClient {
}
pub async fn get_playlist(&self, playlist_id: &SpotifyId) -> SpClientResult {
let endpoint = format!("/playlist/v2/playlist/{:?}", playlist_id.to_base62());
let endpoint = format!("/playlist/v2/playlist/{}", playlist_id.to_base62()?);
self.request(&Method::GET, &endpoint, None, None).await
}