Skip to content

Commit

Permalink
feat(library_item): implement watched function
Browse files Browse the repository at this point in the history
  • Loading branch information
tymmesyde committed Dec 10, 2023
1 parent 261af86 commit 6c1a056
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/types/library/library_item.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@ impl LibraryItem {
}
}

#[inline]
pub fn watched(&self) -> bool {
self.state.times_watched > 0 || self.state.flagged_watched == 1
}

/// Pulling notifications relies on a few key things:
///
/// - LibraryItem should not be "other" or "movie", i.e. if you have "series" it will pull notifications
Expand Down

0 comments on commit 6c1a056

Please sign in to comment.