From e8f93c44fdbe130d8dc4d57b41d411d835c97509 Mon Sep 17 00:00:00 2001 From: George Hahn Date: Sat, 28 Jan 2023 02:53:23 -0700 Subject: [PATCH] Fix NamedSpotifyId::to_uri --- CHANGELOG.md | 1 + core/src/spotify_id.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 798fbb04..090ce2e0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -112,6 +112,7 @@ https://github.com/librespot-org/librespot from the beginning - [playback] Handle disappearing and invalid devices better - [playback] Handle seek, pause, and play commands while loading +- [metadata] Fix missing colon when converting named spotify IDs to URIs ## [0.4.2] - 2022-07-29 diff --git a/core/src/spotify_id.rs b/core/src/spotify_id.rs index f362fed4..2918f568 100644 --- a/core/src/spotify_id.rs +++ b/core/src/spotify_id.rs @@ -345,6 +345,7 @@ impl NamedSpotifyId { let mut dst = String::with_capacity(37 + self.username.len() + item_type.len()); dst.push_str("spotify:user:"); dst.push_str(&self.username); + dst.push(':'); dst.push_str(item_type); dst.push(':'); let base_62 = self.to_base62()?;