omg.xxx changed some html layouts
This commit is contained in:
@@ -91,17 +91,17 @@ impl OmgxxxProvider {
|
||||
break;
|
||||
}
|
||||
let stars_div = text
|
||||
.split("id=\"list_models_models_list_items\"")
|
||||
.collect::<Vec<&str>>()[1]
|
||||
.split("class=\"pagination\"")
|
||||
.split("<div class=\"list-models\">")
|
||||
.collect::<Vec<&str>>().last().unwrap()
|
||||
.split("custom_list_models_models_list_pagination")
|
||||
.collect::<Vec<&str>>()[0];
|
||||
for stars_element in stars_div.split("<a ").collect::<Vec<&str>>()[1..].to_vec() {
|
||||
let star_url = stars_element.split("href=\"").collect::<Vec<&str>>()[1]
|
||||
.split("\"")
|
||||
.collect::<Vec<&str>>()[0];
|
||||
let star_id = star_url.split("/").collect::<Vec<&str>>()[4].to_string();
|
||||
let star_name = stars_element.split("title=\"").collect::<Vec<&str>>()[1]
|
||||
.split("\"")
|
||||
let star_name = stars_element.split("<strong class=\"title\">").collect::<Vec<&str>>()[1]
|
||||
.split("<")
|
||||
.collect::<Vec<&str>>()[0]
|
||||
.to_string();
|
||||
Self::push_unique(
|
||||
|
||||
Reference in New Issue
Block a user