Fix SpClient::get_playlist endpoint generation

This commit is contained in:
Daniel M 2022-08-04 00:09:30 +02:00
parent d88a20929f
commit f55bdbb962

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
}