Skip to content

Lifecycle Rules

The lifecycle rule engine lets you define conditions to automatically identify and act on media in your library. It uses a flexible rule group structure with AND/OR logic.

A rule set is a named collection of rules and actions. Each rule set targets a specific media type (movies, series, or music).

Rules are organized into groups that use either AND or OR logic:

  • AND: All rules in the group must match
  • OR: At least one rule in the group must match

Groups can be nested to create complex conditions.

Each individual rule consists of:

  1. Field — what property to evaluate (e.g., playCount, resolution, addedAt)
  2. Operator — how to compare (e.g., equals, greaterThan, before)
  3. Value — the target value

Rules can be negated (NOT) to invert their logic.

Over 50 fields are available for rule conditions.

FieldDescriptionOperators
playCountNumber of times playedequals, greaterThan, lessThan, etc.
lastPlayedAtWhen last playedbefore, after, inLastDays
addedAtWhen added to librarybefore, after, inLastDays
titleMedia titleequals, contains, matchesWildcard
parentTitleSeries name (for episodes)equals, contains, matchesWildcard
yearRelease yearequals, greaterThan, lessThan, etc.
contentRatingContent rating (PG, R, etc.)equals, notEquals
ratingCritic ratinggreaterThan, lessThan, etc.
audienceRatingAudience ratinggreaterThan, lessThan, etc.
studioProduction studioequals, contains
genreGenre(s)equals, contains
durationDuration in minutesgreaterThan, lessThan, etc.
FieldDescription
resolution4K, 1080P, 720P, etc.
videoCodecH.264, H.265, AV1, etc.
videoBitrateVideo bitrate
videoBitDepth8-bit, 10-bit
videoProfileBaseline, Main, High
videoFrameRateFrame rate (23.976, 24, etc.)
aspectRatio16:9, 4:3, 2.39:1, etc.
dynamicRangeSDR, HDR10, HDR10+, Dolby Vision, HLG
scanTypeprogressive, interlaced
FieldDescription
audioCodecAAC, AC3, FLAC, etc.
audioChannelsChannel count (2, 6, 8, etc.)
audioProfileDolby Atmos, DTS-HD MA, etc.
audioSamplingRateSampling rate (48000, etc.)
audioBitrateAudio bitrate
audioLanguageAudio track language
audioStreamCountNumber of audio tracks
FieldDescription
fileSizeFile size (in MB)
containerFile container (MKV, MP4, etc.)
subtitleLanguageSubtitle track language
subtitleStreamCountNumber of subtitle tracks

These fields require configured Sonarr, Radarr, or Lidarr integrations.

FieldDescription
arrTagTags in *arr instance
arrQualityProfileQuality profile name
arrMonitoredWhether monitored in *arr
arrRatingRating in *arr

These fields require a configured Seerr integration.

FieldDescription
seerrRequestedWhether requested in Seerr
seerrRequestDateWhen the request was made
seerrRequestCountNumber of requests
seerrRequestedByWho requested it
seerrApprovalDateWhen approved
seerrDeclineDateWhen declined
OperatorApplicable TypesDescription
equalstext, numberExact match
notEqualstext, numberNot an exact match
greaterThannumberGreater than value
greaterThanOrEqualnumberGreater than or equal
lessThannumberLess than value
lessThanOrEqualnumberLess than or equal
containstextSubstring match (case-insensitive)
notContainstextDoes not contain substring
matchesWildcardtextWildcard match (* = any characters, ? = single character)
notMatchesWildcardtextDoes not match wildcard pattern
beforedateBefore a specific date
afterdateAfter a specific date
inLastDaysdateWithin the last N days
  1. Create a Rule Set: Give it a name and select the target media type
  2. Add rules: Select a field, operator, and value
  3. Group rules: Use AND/OR groups to combine conditions
  4. Nest groups: Create sub-groups for complex logic
  5. Toggle rules: Enable/disable individual rules or groups without deleting them
  6. Negate rules: Apply NOT to invert a rule’s logic
  7. Reorder: Drag rules to change their position within a group

Create a rule set with an AND group containing:

  • playCount equals 0 — Never watched
  • addedAt before 2023-01-01 — Added over a year ago
  • resolution notEquals 4K — Not 4K quality

Create a rule set with an OR group:

  • resolution equals 480P
  • resolution equals SD
  • videoCodec equals mpeg2video

Before executing any actions, use the Preview feature to see which media items match your rules:

  • Shows a count of matching items
  • Displays a paginated list (50 per page) with metadata
  • Updates in real time as you modify rules

Actions determine what happens to matched media. Configure them in the Actions tab of a rule set.

ActionDescriptionRequires
DeleteRemove from *arr and optionally delete filesSonarr/Radarr/Lidarr
UnmonitorStop monitoring for upgrades in *arrSonarr/Radarr/Lidarr
Do NothingTrack matches without taking action

Tags can be added or removed as a supplementary operation alongside any action (including Do Nothing).

Each action links a rule set to an *arr instance:

  1. Select the *arr integration (e.g., “My Radarr”)
  2. Choose the action type (delete, unmonitor, do nothing)
  3. Set action-specific options (e.g., delete files toggle)
  4. Optionally configure tags to add or remove
  5. Set priority — actions execute top-to-bottom

Rules are evaluated in two steps:

  1. Step 1 — Local data: Rules based on your media’s own properties (resolution, play count, dates, file size, etc.) are evaluated first using your database — this is fast.

  2. Step 2 — External data: Rules based on Sonarr, Radarr, Lidarr, or Seerr data (tags, quality profiles, monitored status, requests) require live lookups to those services, so they run after Step 1 narrows down the results.

Lifecycle processing runs on two independent schedules (configured in Settings → Scheduling):

  • Detection: Evaluates rules and identifies matching media
  • Execution: Performs configured actions on matched media

Both can be run manually via the Run Now button at any time.

  • *arr actions require the corresponding integration to be configured and reachable
  • Rules using integration data are slower and scale with the number of matches
  • File size rules accept input in MB but are stored and compared in bytes
  • Wildcard matching uses * (any characters) and ? (single character), not regex