Fetch synced lyrics (with timestamps) from LRCLib using the LRC format.
- 📦 Crate: crates.io/crates/tlyrics
- 📖 Docs: docs.rs/tlyrics/latest
To search for a track, you can use search():
let results = search("slow dancing in the dark").await?;
println!("{:#?}", results);
let song = results[0];
println!("Name: {}", song.track_name);
println!("By: {}", song.artist_name);
println!("Album: {}", song.album_name);
println!("Duration: {}", song.duration);
// Synced lyrics
if let Some(lyrics) = song.synced_lyrics {
println!("{:#?}", lyrics.pieces());
}To get a track by its ID, you can use get_by_id():
let song = get_by_id(song_id).await?;
// ... logic