omgxxx bugfix

This commit is contained in:
Simon
2025-10-03 17:47:26 +00:00
parent f9ccdd8b33
commit 81b967e811

View File

@@ -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..]