From ef4a86d3ca4e31830093e9e321a2db23b8936ad2 Mon Sep 17 00:00:00 2001 From: Simon Date: Sat, 4 Oct 2025 19:57:03 +0000 Subject: [PATCH] bugfix --- Cargo.toml | 14 +++++++++++--- src/providers/omgxxx.rs | 6 +++--- 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index e169a20..d3226dc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,14 +13,14 @@ futures = "0.3.31" htmlentity = "1.3.2" ntex = { version = "2.15.1", features = ["tokio"] } ntex-files = "2.0.0" -serde = "1.0.219" -serde_json = "1.0.143" +serde = "1.0.228" +serde_json = "1.0.145" tokio = { version = "1.47.1", features = ["full"] } wreq = { version = "5.3.0", features = ["full", "cookies"] } wreq-util = "2" percent-encoding = "2.3.2" capitalize = "0.3.4" -url = "2.5.4" +url = "2.5.7" base64 = "0.22.1" scraper = "0.24.0" once_cell = "1.21.3" @@ -31,3 +31,11 @@ async-trait = "0.1" unexpected_cfgs = "allow" # Or keep it as a warning but whitelist the cfg: # unexpected_cfgs = { level = "warn", check-cfg = ['cfg(has_error_description_deprecated)'] } + +# Enable a small amount of optimization in the dev profile. +[profile.dev] +opt-level = 1 + +# Enable a large amount of optimization in the dev profile for dependencies. +[profile.dev.package."*"] +opt-level = 3 diff --git a/src/providers/omgxxx.rs b/src/providers/omgxxx.rs index 5d1aa36..1e05250 100644 --- a/src/providers/omgxxx.rs +++ b/src/providers/omgxxx.rs @@ -310,10 +310,10 @@ impl OmgxxxProvider { sort_string = format!("sites/{}{}", options.sites.as_ref().unwrap(), alt_sort_string); } if options.stars.is_some() - && !options.sites.as_ref().unwrap().is_empty() - && options.sites.as_ref().unwrap() != "all" + && !options.stars.as_ref().unwrap().is_empty() + && options.stars.as_ref().unwrap() != "all" { - sort_string = format!("models/{}{}", options.sites.as_ref().unwrap(), alt_sort_string); + sort_string = format!("models/{}{}", options.stars.as_ref().unwrap(), alt_sort_string); } let video_url = format!("{}/{}/{}/", self.url, sort_string, page); let old_items = match cache.get(&video_url) {