figed scraper regex

This commit is contained in:
Zastian Pretorius
2023-01-10 16:12:30 +00:00
parent cc4f530764
commit 929cca2ace

View File

@@ -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);