From 52081698e94ddd11d772644475d4f013782fff26 Mon Sep 17 00:00:00 2001 From: Simon Date: Thu, 5 Jun 2025 04:22:48 +0000 Subject: [PATCH] fixed hanime search --- src/providers/hanime.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/providers/hanime.rs b/src/providers/hanime.rs index 559e4d8..8fced56 100644 --- a/src/providers/hanime.rs +++ b/src/providers/hanime.rs @@ -103,7 +103,7 @@ struct HanimeSearchResult{ brand_id: u64, duration_in_ms: u32, is_censored: bool, - rating: f32, + rating: Option, likes: u64, dislikes: u64, downloads: u64, @@ -225,7 +225,6 @@ impl HanimeProvider { .into_iter() .filter_map(Result::ok) .collect(); - items.sort_by(|a, b| b.0.cmp(&a.0)); let video_items: Vec = items.into_iter().map(|(_, item)| item).collect(); if !video_items.is_empty() { cache.remove(&index);