mirror of
https://github.com/librespot-org/librespot.git
synced 2024-11-08 16:45:43 +00:00
Merge pull request #1115 from GeorgeHahn/fix-uri-encoding
Fix `NamedSpotifyId::to_uri`
This commit is contained in:
commit
e68bbbf731
2 changed files with 2 additions and 0 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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()?;
|
||||||
|
|
Loading…
Reference in a new issue