Describe the bug
Jellyfin episodes manually marked as played (using the checkmark in the UI) are not detected as "viewed" by Maintainerr rules (e.g., sw_viewedEpisodes). This causes rules to return 0 viewed episodes even when items are explicitly marked as watched.
To Reproduce
Steps to reproduce the behavior:
- Go to your Jellyfin server UI.
- Manually click the "Played" checkmark on one or more episodes of a series (without actually playing/streaming them).
- In Maintainerr, run a rule using the
Jellyfin.sw_viewedEpisodes property for that series.
- See that the viewed episode count returns 0 instead of the expected amount.
Expected behavior
Episodes manually marked as played in Jellyfin should be recognized as viewed by Maintainerr rules, regardless of whether they were actually streamed.
Device (please complete the following information):
Additional context
The issue was caused by the internal isCompletedWatch logic incorrectly prioritizing watch percentage over the explicit "Played" flag. Additionally, some API calls were not explicitly requesting user-specific metadata, leading to missing watch states.
Describe the bug
Jellyfin episodes manually marked as played (using the checkmark in the UI) are not detected as "viewed" by Maintainerr rules (e.g.,
sw_viewedEpisodes). This causes rules to return 0 viewed episodes even when items are explicitly marked as watched.To Reproduce
Steps to reproduce the behavior:
Jellyfin.sw_viewedEpisodesproperty for that series.Expected behavior
Episodes manually marked as played in Jellyfin should be recognized as viewed by Maintainerr rules, regardless of whether they were actually streamed.
Device (please complete the following information):
Additional context
The issue was caused by the internal
isCompletedWatchlogic incorrectly prioritizing watch percentage over the explicit "Played" flag. Additionally, some API calls were not explicitly requesting user-specific metadata, leading to missing watch states.