Also pick up image tags

pull/792/head
Tom Parker-Shemilt 5 years ago
parent fd843a5dd8
commit a6b79d73ec

@ -128,16 +128,19 @@ async fn main() -> Result<()> {
for (event, _range) in parser.into_offset_iter() {
if let Event::Start(tag) = event {
if let Tag::Link(_link_type, url, _title) = tag {
if !url.starts_with("http") {
continue;
}
let url_string = url.to_string();
if results.working.contains(&url_string) {
continue;
match tag {
Tag::Link(_link_type, url, _title) | Tag::Image(_link_type, url, _title) => {
if !url.starts_with("http") {
continue;
}
let url_string = url.to_string();
if results.working.contains(&url_string) {
continue;
}
let check = get_url(url_string).boxed();
url_checks.push(check);
}
let check = get_url(url_string).boxed();
url_checks.push(check);
_ => {}
}
}
}

Loading…
Cancel
Save