diff --git a/src/providers/pornhub.rs b/src/providers/pornhub.rs index 7e7a0d4..1b21b05 100644 --- a/src/providers/pornhub.rs +++ b/src/providers/pornhub.rs @@ -116,13 +116,15 @@ impl PornhubProvider { } } - if !query.contains("@channels"){ + if query.contains("@channels"){ url += match sort { "mr" => "", "mv" => "&o=vi", "tr" => "&o=ra", _ => "", } + } else{ + url += format!("&o={}", sort).as_str(); } // Check our Video Cache. If the result is younger than 1 hour, we return it.