mirror of
https://github.com/librespot-org/librespot.git
synced 2024-12-18 17:11:53 +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 {
|
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
|
self.request(&Method::GET, &endpoint, None, None).await
|
||||||
}
|
}
|
||||||
|
@ -454,7 +454,7 @@ impl SpClient {
|
||||||
.await
|
.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!(
|
let endpoint = format!(
|
||||||
"/inspiredby-mix/v2/seed_to_playlist/{}?response-format=json",
|
"/inspiredby-mix/v2/seed_to_playlist/{}?response-format=json",
|
||||||
track_id.to_uri()?
|
track_id.to_uri()?
|
||||||
|
|
Loading…
Reference in a new issue