Skip to content

Commit

Permalink
fix: episode progress tracking across seasons
Browse files Browse the repository at this point in the history
Fixes an issue where watching an episode would incorrectly mark all episodes with the same number across different seasons as watched. Now properly tracks progress by matching episode ID, season number, and episode number.
  • Loading branch information
Simayon authored and rhenwinch committed Nov 28, 2024
1 parent 0019f96 commit c270c99
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ internal fun EpisodeCard(
val episodeProgress = watchHistoryItem
.episodesWatched
.find {
it.episodeId == data.id
it.episodeId == data.id &&
it.seasonNumber == data.season &&
it.episodeNumber == data.number
}

when {
Expand Down

0 comments on commit c270c99

Please sign in to comment.