Crates.io | track_album_number_genius |
lib.rs | track_album_number_genius |
version | 1.0.3 |
source | src |
created_at | 2022-02-14 22:33:36.725207 |
updated_at | 2023-08-23 20:56:33.887088 |
description | Fetches track's number (starting from zero) in album by album's URL |
homepage | |
repository | https://github.com/dinaraparanid/genius_track_number_in_album |
max_upload_size | |
id | 532441 |
size | 38,423 |
Fetches track's number (starting from zero) in album by album's URL
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)
)
}