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) {