mirror of
https://github.com/librespot-org/librespot.git
synced 2024-12-18 17:11:53 +00:00
Merge pull request #1041 from dnlmlr/fix-get-playlist
Fix `SpClient::get_playlist` endpoint generation
This commit is contained in:
commit
35f633c93a
1 changed files with 1 additions and 1 deletions
|
@ -408,7 +408,7 @@ impl SpClient {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub async fn get_playlist(&self, playlist_id: &SpotifyId) -> SpClientResult {
|
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
|
self.request(&Method::GET, &endpoint, None, None).await
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue