forked from danmax/r34-scraper
Compare commits
1 Commits
ee0e938782
...
javalsai-c
Author | SHA1 | Date | |
---|---|---|---|
bcd349e36f
|
@@ -139,11 +139,9 @@ fn extract_img_url(html: &str) -> Result<String, &'static str> {
|
||||
.find(html)
|
||||
{
|
||||
Ok(img_url.as_str().to_string())
|
||||
} else {
|
||||
if html.contains("503 Rate limiting") {
|
||||
} else if html.contains("503 Rate limiting") {
|
||||
Err("ratelimited")
|
||||
} else {
|
||||
Ok(String::new())
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user