pmvhaven category option

This commit is contained in:
Simon
2025-07-18 10:02:54 +00:00
parent 0b2e1478ea
commit 90f85dc6e8
3 changed files with 58 additions and 5 deletions

View File

@@ -189,7 +189,7 @@ impl HanimeProvider {
}
async fn get(&self, cache: VideoCache, pool: DbPool, page: u8, query: String, sort:String) -> Result<Vec<VideoItem>> {
let index = format!("{}:{}:{}", query, page, sort);
let index = format!("hanime:{}:{}:{}", query, page, sort);
let order_by = match sort.contains("."){
true => sort.split(".").collect::<Vec<&str>>()[0].to_string(),
false => "created_at_unix".to_string(),