Playlist ID should be Base62 encoded

This commit is contained in:
Roderick van Domburg 2022-08-03 23:21:38 +02:00
parent a60d63637d
commit d88a20929f
No known key found for this signature in database
GPG key ID: 87F5FDE8A56219F4

View file

@ -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()?