Function mangadex_api::helpers::parse_manga_id_from_scraped_url [−][src]
pub fn parse_manga_id_from_scraped_url(url: &str) -> Option<MangaId>
Attempt to parse a manga ID from a web scraped URL slug.
URL format is “/manga/{manga_id}/{manga_title}”, so the desired index is 1 after stripping the left slash.