tlyrics

Crates.iotlyrics
lib.rstlyrics
version0.1.1
sourcesrc
created_at2024-11-24 15:28:43.724823
updated_at2024-11-24 15:45:06.393001
descriptionFetch synced lyrics (with timestamps) using the LRC format.
homepage
repositoryhttps://github.com/AWeirdDev/tlyrics
max_upload_size
id1459331
size47,332
JC (AWeirdDev)

documentation

README

tlyrics

Fetch synced lyrics (with timestamps) from LRCLib using the LRC format.

Search

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());
}

By ID

To get a track by its ID, you can use get_by_id():

let song = get_by_id(song_id).await?;

// ... logic

AWeirdDev

Commit count: 4

cargo fmt