fix(media): distinguish leaf and aggregate watch state

close #1610
This commit is contained in:
edde746
2026-07-26 14:58:38 +02:00
parent 60cc983471
commit 5ee3120a97
12 changed files with 335 additions and 41 deletions
@@ -147,7 +147,7 @@ class AnimeEpisodeProgressResolver implements AnimeEpisodeProgressLookup {
if (season == null || season < 0) continue;
final watched = item.viewedLeafCount;
if (watched == null || watched < 0) continue;
final total = item.leafCount ?? item.childCount;
final total = item.leafWatchTotal;
if (progress.containsKey(season)) return null;
progress[season] = _SeasonProgress(total: total, watched: watched);
}