fixed hanime search

This commit is contained in:
Simon
2025-06-05 04:22:48 +00:00
parent d837028faf
commit 52081698e9

View File

@@ -103,7 +103,7 @@ struct HanimeSearchResult{
brand_id: u64,
duration_in_ms: u32,
is_censored: bool,
rating: f32,
rating: Option<u32>,
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<Video_Item> = items.into_iter().map(|(_, item)| item).collect();
if !video_items.is_empty() {
cache.remove(&index);