Skip to content

feat: add movie release date cutoff filter - #341

Merged
jon4hz merged 3 commits into
jon4hz:mainfrom
Primexz:feat/movie_release_date_max_filter
Aug 3, 2026
Merged

feat: add movie release date cutoff filter#341
jon4hz merged 3 commits into
jon4hz:mainfrom
Primexz:feat/movie_release_date_max_filter

Conversation

@Primexz

@Primexz Primexz commented Jun 5, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds a per-library movie_release_date_max filter for Radarr movie cleanup candidates.

When configured, movies are only eligible for deletion if their release date is before the configured cutoff date. Movies released on or after the cutoff are skipped. Non-movie media continues through the filter unchanged, and leaving the setting empty disables the release-date filter.

Use case

This lets users delete older, unwatched movies while protecting newer releases from cleanup. For example, a library can allow movies released before 2024 to be considered for deletion when they also satisfy the existing age, stream, size, and tag filters, while keeping movies released in 2024 or later.

Details

  • Adds movie_release_date_max to filter config.
  • Supports YYYY-MM-DD and RFC3339-style timestamps.
  • Registers the movie release filter in the cleanup pipeline.
  • Uses the earliest known Radarr movie release date from release date, cinema, digital, or physical release fields.
  • Documents the new setting in the README.
  • Adds tests for cutoff behavior, disabled config behavior, and earliest-release-date selection.

Validation

  • go test ./internal/filter/movie_release_filter

@Primexz Primexz changed the title [codex] add movie release date cutoff filter add movie release date cutoff filter Jun 5, 2026
@Primexz Primexz changed the title add movie release date cutoff filter feat: add movie release date cutoff filter Jun 5, 2026
@jon4hz

jon4hz commented Aug 3, 2026

Copy link
Copy Markdown
Owner

Hey @Primexz, thanks a lot for the contribution!

@jon4hz
jon4hz merged commit 1a80f70 into jon4hz:main Aug 3, 2026
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants