omgxxx bugfix
This commit is contained in:
@@ -117,7 +117,7 @@ impl OmgxxxProvider {
|
||||
if query.starts_with("@models:") {
|
||||
search_type = "models";
|
||||
}
|
||||
let video_url = format!("{}/{}/{}/{}/", self.url, search_type, query.to_lowercase().trim().replace(" ","-"), page);
|
||||
let video_url = format!("{}/{}/{}/{}/", self.url, search_type, query.to_lowercase().trim().replace(" ","-").replace("@models:",""), page);
|
||||
// Check our Video Cache. If the result is younger than 1 hour, we return it.
|
||||
let old_items = match cache.get(&video_url) {
|
||||
Some((time, items)) => {
|
||||
@@ -152,9 +152,6 @@ impl OmgxxxProvider {
|
||||
return vec![];
|
||||
}
|
||||
let mut items: Vec<VideoItem> = Vec::new();
|
||||
// list_videos_latest_videos_list_items
|
||||
// custom_list_videos_videos_list_search_result_items
|
||||
|
||||
let raw_videos = html.split("videos_list_pagination").collect::<Vec<&str>>()[0]
|
||||
.split("<div class=\"item\"")
|
||||
.collect::<Vec<&str>>()[1..]
|
||||
|
||||
Reference in New Issue
Block a user