Add more logic for konsumentinfo.se, telefonforsaljare.nu, and handle error for hitta.se.
This commit is contained in:
@@ -28,9 +28,12 @@ impl Probe for Eniro {
|
||||
ctx.cache_set("eniro", &number, body.as_bytes())
|
||||
.expect("wut?! why not?!");
|
||||
|
||||
println!("eniro.se:");
|
||||
|
||||
if let Ok(error) = Error::from_html(&body) {
|
||||
println!("eniro.se:");
|
||||
println!(" {}", error.message);
|
||||
} else {
|
||||
println!(" Failed to find any data");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user