Skip to content

Latest commit

 

History

History
31 lines (24 loc) · 731 Bytes

README.md

File metadata and controls

31 lines (24 loc) · 731 Bytes

Genius Track Number Fetcher

crates.io Rust

Developer

Paranid5

About Library

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