Skip to content

dinaraparanid/genius_track_number_in_album

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Fetches track's number in album using its Genius URL

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages