fixed hanime search
This commit is contained in:
@@ -103,7 +103,7 @@ struct HanimeSearchResult{
|
|||||||
brand_id: u64,
|
brand_id: u64,
|
||||||
duration_in_ms: u32,
|
duration_in_ms: u32,
|
||||||
is_censored: bool,
|
is_censored: bool,
|
||||||
rating: f32,
|
rating: Option<u32>,
|
||||||
likes: u64,
|
likes: u64,
|
||||||
dislikes: u64,
|
dislikes: u64,
|
||||||
downloads: u64,
|
downloads: u64,
|
||||||
@@ -225,7 +225,6 @@ impl HanimeProvider {
|
|||||||
.into_iter()
|
.into_iter()
|
||||||
.filter_map(Result::ok)
|
.filter_map(Result::ok)
|
||||||
.collect();
|
.collect();
|
||||||
items.sort_by(|a, b| b.0.cmp(&a.0));
|
|
||||||
let video_items: Vec<Video_Item> = items.into_iter().map(|(_, item)| item).collect();
|
let video_items: Vec<Video_Item> = items.into_iter().map(|(_, item)| item).collect();
|
||||||
if !video_items.is_empty() {
|
if !video_items.is_empty() {
|
||||||
cache.remove(&index);
|
cache.remove(&index);
|
||||||
|
|||||||
Reference in New Issue
Block a user