diff --git a/src/anime/scraper.rs b/src/anime/scraper.rs index 35d5b3d..48df123 100644 --- a/src/anime/scraper.rs +++ b/src/anime/scraper.rs @@ -66,7 +66,7 @@ pub fn get_anime_link(url: &str, episode: u64) -> String { episode ); let html = get_anime_html(url); - let re = Regex::new(r#"iframe id="main-embed" src="//yugen\.to/e/([^/]*)/"#).unwrap(); + let re = Regex::new(r#"/e/([^/]*)"#).unwrap(); let capture = re.captures(&html).unwrap(); let id = &capture[1]; let id = format!("id={}%3D&ac=0", id);