(&self, playlist: SimplifiedPlaylist)
| 234 | |
| 235 | #[tracing::instrument(level = "debug", skip(self, playlist))] |
| 236 | fn parse_playlist(&self, playlist: SimplifiedPlaylist) -> QueryablePlaylist { |
| 237 | QueryablePlaylist { |
| 238 | playlist_id: Some(format!("spotify-playlist:{}", playlist.id.id())), |
| 239 | playlist_name: playlist.name, |
| 240 | playlist_coverpath: playlist.images.first().map(|i| i.url.clone()), |
| 241 | playlist_song_count: playlist.tracks.total as f64, |
| 242 | extension: Some(self.key()), |
| 243 | ..Default::default() |
| 244 | } |
| 245 | } |
| 246 | |
| 247 | #[tracing::instrument(level = "debug", skip(artist))] |
| 248 | fn parse_artists(artist: SimplifiedArtist, images: Option<Vec<Image>>) -> QueryableArtist { |
no test coverage detected