From 929cca2ace350d892e16ae760ada9ee8d2201dbd Mon Sep 17 00:00:00 2001 From: Zastian Pretorius Date: Tue, 10 Jan 2023 16:12:30 +0000 Subject: [PATCH] figed scraper regex --- src/anime/scraper.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/anime/scraper.rs b/src/anime/scraper.rs index 8f87653..35d5b3d 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="https://yugen\.to/e/([^/]*)/"#).unwrap(); + let re = Regex::new(r#"iframe id="main-embed" src="//yugen\.to/e/([^/]*)/"#).unwrap(); let capture = re.captures(&html).unwrap(); let id = &capture[1]; let id = format!("id={}%3D&ac=0", id);