Fix NamedSpotifyId::to_uri

This commit is contained in:
George Hahn 2023-01-28 02:53:23 -07:00
parent 4610bd6f99
commit e8f93c44fd
2 changed files with 2 additions and 0 deletions

View file

@ -112,6 +112,7 @@ https://github.com/librespot-org/librespot
from the beginning from the beginning
- [playback] Handle disappearing and invalid devices better - [playback] Handle disappearing and invalid devices better
- [playback] Handle seek, pause, and play commands while loading - [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 ## [0.4.2] - 2022-07-29

View file

@ -345,6 +345,7 @@ impl NamedSpotifyId {
let mut dst = String::with_capacity(37 + self.username.len() + item_type.len()); let mut dst = String::with_capacity(37 + self.username.len() + item_type.len());
dst.push_str("spotify:user:"); dst.push_str("spotify:user:");
dst.push_str(&self.username); dst.push_str(&self.username);
dst.push(':');
dst.push_str(item_type); dst.push_str(item_type);
dst.push(':'); dst.push(':');
let base_62 = self.to_base62()?; let base_62 = self.to_base62()?;