Skip to content

Commit

Permalink
prevent search intro
Browse files Browse the repository at this point in the history
  • Loading branch information
tsukinaha committed Oct 7, 2024
1 parent 8352f87 commit 4c4aec0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/ui/widgets/item.rs
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,11 @@ impl ItemPage {

pub async fn update_intro(&self) {
let item = self.item();

if item.item_type() != "Series" && item.item_type() != "Episode" {
return;
}

let series_id = item.series_id().unwrap_or(item.id());

spawn(glib::clone!(
Expand Down

0 comments on commit 4c4aec0

Please sign in to comment.