Merge pull request #1115 from GeorgeHahn/fix-uri-encoding

Fix `NamedSpotifyId::to_uri`
This commit is contained in:
Roderick van Domburg 2023-01-28 11:41:31 +01:00 committed by GitHub
commit e68bbbf731
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View file

@ -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

View file

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