slimmed omgxxx
This commit is contained in:
@@ -91,8 +91,6 @@ impl OmgxxxProvider {
|
||||
let networks_div = text.split("class=\"sites__list\"").collect::<Vec<&str>>()[1]
|
||||
.split("</div>")
|
||||
.collect::<Vec<&str>>()[0];
|
||||
let mut networks_vec: Vec<FilterOption> = vec![];
|
||||
|
||||
for network_element in networks_div.split("sites__item").collect::<Vec<&str>>()[1..].to_vec() {
|
||||
if network_element.contains("sites__all"){continue;}
|
||||
let network_url = network_element.split("href=\"").collect::<Vec<&str>>()[1]
|
||||
@@ -103,10 +101,6 @@ impl OmgxxxProvider {
|
||||
.split("<")
|
||||
.collect::<Vec<&str>>()[0]
|
||||
.to_string();
|
||||
networks_vec.push(FilterOption {
|
||||
id: network_id.clone(),
|
||||
title: network_name.clone(),
|
||||
});
|
||||
Self::push_unique(
|
||||
&networks,
|
||||
FilterOption {
|
||||
|
||||
Reference in New Issue
Block a user