omg update
This commit is contained in:
@@ -31,7 +31,7 @@ impl OmgxxxProvider {
|
||||
let provider = OmgxxxProvider {
|
||||
url: "https://www.omg.xxx".to_string(),
|
||||
sites: Arc::new(RwLock::new(vec![])),
|
||||
networks: Arc::new(RwLock::new(vec![])),
|
||||
networks: Arc::new(RwLock::new(vec![FilterOption{id:"all".to_string(),title:"All".to_string()}])),
|
||||
};
|
||||
|
||||
// Kick off the background load but return immediately
|
||||
@@ -201,7 +201,7 @@ impl OmgxxxProvider {
|
||||
"most-popular" => "most-popular".to_string(),
|
||||
_ => "latest-updates".to_string(),
|
||||
};
|
||||
if options.network.is_some() && !options.network.as_ref().unwrap().is_empty(){
|
||||
if options.network.is_some() && !options.network.as_ref().unwrap().is_empty() && options.network.as_ref().unwrap() != "all" {
|
||||
sort_string = format!("networks/{}",options.network.as_ref().unwrap());
|
||||
}
|
||||
let video_url = format!("{}/{}/{}/", self.url, sort_string, page);
|
||||
|
||||
Reference in New Issue
Block a user