mirror of
https://github.com/librespot-org/librespot.git
synced 2024-11-08 16:45:43 +00:00
Playlist ID should be Base62 encoded
This commit is contained in:
parent
a60d63637d
commit
d88a20929f
1 changed files with 2 additions and 2 deletions
|
@ -408,7 +408,7 @@ impl SpClient {
|
|||
}
|
||||
|
||||
pub async fn get_playlist(&self, playlist_id: &SpotifyId) -> SpClientResult {
|
||||
let endpoint = format!("/playlist/v2/playlist/{}", playlist_id);
|
||||
let endpoint = format!("/playlist/v2/playlist/{:?}", playlist_id.to_base62());
|
||||
|
||||
self.request(&Method::GET, &endpoint, None, None).await
|
||||
}
|
||||
|
@ -454,7 +454,7 @@ impl SpClient {
|
|||
.await
|
||||
}
|
||||
|
||||
pub async fn get_radio_for_track(&self, track_id: SpotifyId) -> SpClientResult {
|
||||
pub async fn get_radio_for_track(&self, track_id: &SpotifyId) -> SpClientResult {
|
||||
let endpoint = format!(
|
||||
"/inspiredby-mix/v2/seed_to_playlist/{}?response-format=json",
|
||||
track_id.to_uri()?
|
||||
|
|
Loading…
Reference in a new issue