track_album_number_genius

Crates.iotrack_album_number_genius
lib.rstrack_album_number_genius
version1.0.3
sourcesrc
created_at2022-02-14 22:33:36.725207
updated_at2023-08-23 20:56:33.887088
descriptionFetches track's number (starting from zero) in album by album's URL
homepage
repositoryhttps://github.com/dinaraparanid/genius_track_number_in_album
max_upload_size
id532441
size38,423
Arseny Savchenko (dinaraparanid)

documentation

README

Genius Track Number Fetcher

crates.io Rust

Fetches track's number (starting from zero) in album by album's URL

Example

extern crate tokio;
use track_album_number_genius::get_track_number_in_album;

#[tokio::main]
async fn main() {
    assert!(
        "{}", 
        get_track_number_in_album(
            "https://genius.com/albums/The-weeknd/After-hours", 
            "Too Late"
        ).await, 
        Some(1)
    ) 
}
Commit count: 8

cargo fmt