Skip to content

Commit

Permalink
fix(filter panel): extended_video_types should use id
Browse files Browse the repository at this point in the history
Signed-off-by: tsukinaha <sakuovds@gmail.com>
  • Loading branch information
tsukinaha committed Dec 22, 2024
1 parent fc27c84 commit 3d12eab
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions src/ui/widgets/filter_panel/filters_list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,14 +102,12 @@ impl FiltersList {
}

if let Some(video_types) = &self.video_types {
kv.push((
"ExtendedVideoTypes".to_owned(),
video_types
.iter()
.map(|f| f.name.to_owned())
.collect::<Vec<_>>()
.join(","),
));
let video_type_ids: Vec<_> =
video_types.iter().filter_map(|f| f.id.to_owned()).collect();

if !video_type_ids.is_empty() {
kv.push(("ExtendedVideoTypes".to_owned(), video_type_ids.join(",")));
}
}

match self.resolution {
Expand Down

0 comments on commit 3d12eab

Please sign in to comment.