mirror of
https://github.com/librespot-org/librespot.git
synced 2024-12-18 17:11:53 +00:00
Fixed formatting
This commit is contained in:
parent
8939954bd7
commit
d47cc75dc6
1 changed files with 3 additions and 9 deletions
|
@ -106,15 +106,9 @@ impl SpotifyId {
|
||||||
|
|
||||||
pub fn to_uri(&self) -> String {
|
pub fn to_uri(&self) -> String {
|
||||||
match self.audio_type {
|
match self.audio_type {
|
||||||
SpotifyAudioType::Track => {
|
SpotifyAudioType::Track => format!("spotify:track:{}", self.to_base62()),
|
||||||
format!("spotify:track:{}", self.to_base62())
|
SpotifyAudioType::Podcast => format!("spotify:episode:{}", self.to_base62()),
|
||||||
}
|
SpotifyAudioType::NonPlayable => format!("spotify:unknown:{}", self.to_base62()),
|
||||||
SpotifyAudioType::Podcast => {
|
|
||||||
format!("spotify:episode:{}", self.to_base62())
|
|
||||||
}
|
|
||||||
SpotifyAudioType::NonPlayable => {
|
|
||||||
format!("spotify:unknown:{}", self.to_base62())
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue