- match key_str {
- "xesam:artist" => {
- // Variant holding a variant that should just be a Vec<&str> I
- // believe. This is _the recommended_ way to do this by the author.
- let inner_value = value?.as_iter()?.next()?.as_iter()?.next()?;
- let artist = inner_value.as_str()?;
- update_map(spotify_match_map.clone(), "artist", artist);
+ match key_str {
+ "xesam:artist" => {
+ // Variant holding a variant that should just be a Vec<&str> I
+ // believe. This is _the recommended_ way to do this by the author.
+ let inner_value =
+ value?.as_iter()?.next()?.as_iter()?.next()?;
+ let artist = inner_value.as_str()?;
+ update_map(spotify_match_map.clone(), "artist", artist);
+ }
+ "xesam:title" => {
+ let title = value?.as_iter()?.next()?.as_str()?;
+ update_map(spotify_match_map.clone(), "title", title);
+ }
+ _ => (),