My personal site cherry.computer
htmx tailwind axum askama

feat: add link to song on Apple Music

Didn't consider this before as it would be nicer to link to somewhere
that shows my music history, but this is likely the best option
available for now.

cherry.computer eafe8fb2 f264e07d

verified
+3 -2
+2 -1
server/src/scrapers/apple_music.rs
··· 49 album_name: String, 50 artist_name: String, 51 artwork: AppleMusicTrackArtwork, 52 } 53 54 #[derive(Deserialize, Debug, Clone)] ··· 120 name: track.attributes.name.clone(), 121 image: artwork_url, 122 context, 123 - url: None, 124 }) 125 } 126
··· 49 album_name: String, 50 artist_name: String, 51 artwork: AppleMusicTrackArtwork, 52 + url: String, 53 } 54 55 #[derive(Deserialize, Debug, Clone)] ··· 121 name: track.attributes.name.clone(), 122 image: artwork_url, 123 context, 124 + url: Some(track.attributes.url.clone()), 125 }) 126 } 127
+1 -1
server/src/templates/index.rs
··· 78 name: "We Might Feel Unsound".to_owned(), 79 image: "https://is1-ssl.mzstatic.com/image/thumb/Music124/v4/f4/b2/8e/f4b28ee4-01c6-232c-56a7-b97fd5b0e0ae/00602527857671.rgb.jpg/240x240bb.jpg".to_owned(), 80 context: "James Blake — James Blake".to_owned(), 81 - url: None 82 })), 83 ] 84 }
··· 78 name: "We Might Feel Unsound".to_owned(), 79 image: "https://is1-ssl.mzstatic.com/image/thumb/Music124/v4/f4/b2/8e/f4b28ee4-01c6-232c-56a7-b97fd5b0e0ae/00602527857671.rgb.jpg/240x240bb.jpg".to_owned(), 80 context: "James Blake — James Blake".to_owned(), 81 + url: Some("https://music.apple.com/gb/album/we-might-feel-unsound/1443124478?i=1443125024".to_owned()) 82 })), 83 ] 84 }