channels fix

This commit is contained in:
Simon
2025-07-19 15:21:59 +00:00
parent 44620a88d5
commit 5806f5ee2b

View File

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