From 5806f5ee2ba0cd75e8bae89deb0348f6fc61c53d Mon Sep 17 00:00:00 2001 From: Simon Date: Sat, 19 Jul 2025 15:21:59 +0000 Subject: [PATCH] channels fix --- src/providers/pornhub.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/providers/pornhub.rs b/src/providers/pornhub.rs index eceb0e7..7e7a0d4 100644 --- a/src/providers/pornhub.rs +++ b/src/providers/pornhub.rs @@ -116,7 +116,14 @@ impl PornhubProvider { } } - url += format!("&o={}", sort).as_str(); + if !query.contains("@channels"){ + url += match sort { + "mr" => "", + "mv" => "&o=vi", + "tr" => "&o=ra", + _ => "", + } + } // Check our Video Cache. If the result is younger than 1 hour, we return it. let old_items = match cache.get(&url) {