Skip to content

refactor(recyclarr): switch to includes pattern for resilient CF management#720

Open
mpeterson wants to merge 1 commit into
mainfrom
refactor/recyclarr-use-includes
Open

refactor(recyclarr): switch to includes pattern for resilient CF management#720
mpeterson wants to merge 1 commit into
mainfrom
refactor/recyclarr-use-includes

Conversation

@mpeterson

Copy link
Copy Markdown
Owner

Summary

Replace the fragile custom_format_groups + select pattern with recyclarr's upstream-maintained include templates. This eliminates the coupling to TRaSH Guides' CF group organization, which caused the CronJob breakage fixed in #719.

What changed

  • Added include: directives for official recyclarr config templates:

    • Quality definitions (radarr-quality-definition-movie, sonarr-quality-definition-series)
    • Quality profiles (radarr-quality-profile-{uhd,hd}-bluray-web, sonarr-v4-quality-profile-web-{2160p,1080p})
    • Custom formats (radarr-custom-formats-{uhd,hd}-bluray-web, sonarr-v4-custom-formats-web-{2160p,1080p})
  • Removed all custom_format_groups (Golden Rule UHD/HD, HDR Formats, Optional groups)

  • Added direct custom_formats: entries for optional CFs not covered by includes:

    • HDR10+ Boost (UHD/2160p profiles)
    • IMAX Enhanced (both radarr profiles)
    • Bad Dual Groups, No-RlsGroup, Obfuscated, Retags, Scene (sonarr, both profiles)
    • SDR blocking (UHD/2160p profiles)
  • Removed explicit quality_profiles: with trash_id references and quality_definition: sections — both are now provided by includes

Why

The custom_format_groups pattern couples config to TRaSH Guides' internal group organization. When TRaSH reorganizes groups (moving CFs between groups, renaming groups), the select references break. This happened recently and was fixed in #719.

The includes pattern uses direct CF trash_ids maintained by the recyclarr project. When TRaSH reorganizes, the recyclarr maintainers update the templates — our config doesn't need to change.

Preserved behavior

  • Same quality profiles (UHD Bluray + WEB, HD Bluray + WEB, WEB-2160p, WEB-1080p)
  • Same custom formats coverage
  • Same media naming settings
  • Same delete_old_custom_formats: true behavior
  • Same optional CF selections (SDR, IMAX Enhanced, HDR10+ Boost, etc.)

…gement

Replace fragile custom_format_groups + select pattern with recyclarr's
include templates. The templates are maintained upstream and automatically
track TRaSH Guides reorganizations, preventing breakage like the one
fixed in PR #719.

- Use official sonarr/radarr include templates for standard CFs
- Add optional CFs (SDR, IMAX Enhanced, etc.) as direct custom_formats
- Remove all custom_format_groups references

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@mpeterson mpeterson added enhancement New feature or request area/kubernetes labels Apr 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/kubernetes enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant