feat: missing_episode rules#2386
Merged
Merged
Conversation
0ebbe2b to
53f4575
Compare
fd4a1e8 to
f5bc48b
Compare
- Fix inverted episode-level logic: return 0 when file exists, 1 when missing - Fix showType on missing_episodes_show: available at all levels (show/season/episode), not just episode - Fix code style: replace Yoda conditions and loose equality (==) with strict equality (===) - Improve humanNames: lowercase, remove technical jargon - DRY: deduplicate season/show statistics calculation in missing_episodes case
Collaborator
|
My changes:
|
Collaborator
|
@ydkmlt84 LGTM. 👍 |
Collaborator
|
I removed the missing episodes stand-alone rule as it doesn't make sense. See here: |
enoch85
added a commit
that referenced
this pull request
Mar 9, 2026
…, #2442, #2406, #2386, #2370 PR #2466 - fix: honor Jellyfin played threshold - Respect configured played percentage threshold for Jellyfin watch status PR #2461 - feat(rules): add ARR disk target path selection for disk space rules - Allow selecting specific disk target paths for Radarr/Sonarr disk space rules PR #2458 - feat: clean up empty ended shows in Sonarr after season actions - Automatically remove ended shows from Sonarr when all seasons are processed PR #2453 - fix: improve Plex viewCount reliability and add isWatched boolean - Use native Plex viewCount field with watch history fallback - Add new isWatched boolean rule property PR #2452 - build(deps): bump actions/download-artifact from 7 to 8 PR #2451 - build(deps): bump actions/upload-artifact from 6 to 7 PR #2442 - fix(server): reject null/undefined in numeric rule comparisons - Add getComparisonResult wrapper that fails closed on null/undefined operands - Strict type checking for BIGGER/SMALLER comparisons PR #2406 - Metadata provider abstraction layer with TVDB support - Add MetadataService as central metadata resolution layer - TVDB support as alternative metadata provider - Dynamic provider preference with fallback - Replace TmdbIdService with unified MetadataService PR #2386 - feat: missing_episode rules - Add missing episode count as a rule property for Sonarr PR #2370 - build(deps-dev): bump the eslint group with 2 updates
Collaborator
|
This is now included in the You can check the latest commits here: https://github.com/Maintainerr/Maintainerr/commits/jellyfin-dev
Thank you very much! 🚀 |
Contributor
|
🎉 This PR is included in version 3.1.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description & Design
Build based on #2200 Addressing review comment:
This PR Introduces 3 new Rules:
Any Naming suggestions?
This PR Currently targets the jellyfin-dev branch since it is based on top of it. Will rebase to main once jellyfin-dev is merged.
The Three Rules allow Checking how any Missing Episodes a Show/Season/Episode has.
Works by checking hasFile for Episodes. In all other cases it subtracts episodeFileCount from episodeCount to calculate the count for the Season or the Entire show.
Checklist
How to test
I have done basic testing. But more testing is appreciated.
Additional context
Based on #2200