Skip to content

Commit

Permalink
Merge pull request #666 from Stremio/fix/stream-binge-group-match
Browse files Browse the repository at this point in the history
fix(stream): is_binge_match
  • Loading branch information
tymmesyde authored Mar 25, 2024
2 parents 5a27db8 + 17a784c commit 768821a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/types/resource/stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -253,8 +253,14 @@ impl Stream {
}

#[inline]
pub fn is_binge_match(&self, stream: &Stream) -> bool {
self.behavior_hints.binge_group == stream.behavior_hints.binge_group
pub fn is_binge_match(&self, other_stream: &Stream) -> bool {
match (
&self.behavior_hints.binge_group,
&other_stream.behavior_hints.binge_group,
) {
(Some(a), Some(b)) => a == b,
_ => false,
}
}
}

Expand Down

0 comments on commit 768821a

Please sign in to comment.