feat: Add Sonarr "Episodes - Missing count" rule field#2200
Closed
Tatsuya1983 wants to merge 1 commit into
Closed
Conversation
benscobie
reviewed
Dec 17, 2025
| { | ||
| id: 28, | ||
| name: 'missing_episodes', | ||
| humanName: 'Episodes - Missing count', |
Contributor
There was a problem hiding this comment.
I think this naming is a bit ambiguous. If targeting seasons, I'm unsure if this is a missing count for the season, or the whole show from the name alone. It's likely useful to have both of those, and all 3 for episodes. Perhaps split this up into 3 different rules, which means they can have a more appropriate name each?
Some of our existing rules mix logic like this and it does confuse people.
Author
There was a problem hiding this comment.
Since you apparently have more experience with the Maintainerr community, it would be nice if you could adjust it so that no confusion arises. In that case, you could also reject my pull request. However, it would be nice if you could add the feature for series.
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
This pull request adds a new Sonarr rule field to Maintainerr that allows users to create rules based on the number of missing episodes in TV series.
Changes
1. Added New Rule Field Definition
File:
apps/server/src/modules/rules/constants/rules.constants.tsAdded new property object with ID 28 to the Sonarr application:
missing_episodesEpisodes - Missing count2. Implemented Missing Episodes Calculation Logic
File:
apps/server/src/modules/rules/getter/sonarr-getter.service.tsAdded new case handler that:
episodeCount - episodeFileCountHow It Works
Use Cases
Sonarr - Episodes - Missing count Bigger 0Sonarr - Episodes - Missing count Equals 0Sonarr - Episodes - Missing count Bigger 5Technical Details
statistics.episodeCountandstatistics.episodeFileCountTesting Status
✅ Code compiled successfully
✅ Integrated with rule system
✅ Compatible with all media types
✅ Ready for production