Skip to content

Conversation

@samohtxotom
Copy link
Contributor

@samohtxotom samohtxotom commented Dec 17, 2025

Description

This PR adds a new setting "Use Radarr/Sonarr for Availability" to address an issue when UMTK and Agregarr create placeholder trailers in Plex for upcoming or missing items, the item gets matched and marked as available in Seerr, preventing requests for the 'real' item.

Because Seerr's availability logic uses OR logic (exists in Plex OR exists in Radarr/Sonarr), these placeholder files are marked as AVAILABLE even though they don't exist in Radarr/Sonarr. This would usually be the desired behaviour, and the new option is marked as Advanced to reflect that.

When the new setting is enabled:

  • Discovery: Only Radarr/Sonarr can create new media entries in Seerr
  • Availability: Media availability is determined solely by Radarr/Sonarr (Plex/Jellyfin/Emby are ignored)
  • Metadata: Plex/Jellyfin/Emby scanners still run to add metadata (ratingKey, jellyfinMediaId) to existing entries, to ensure Play on Plex button still appears
  • Cleanup: Availability sync marks placeholder-only media as UNKNOWN and clears metadata including ratingKey

Fixes #2235

How Has This Been Tested?

Built and published docker build, tested by multiple users over multiple weeks.

Screenshots / Logs (if applicable)

image

Checklist:

  • Refactor after PR refactor(jellyfin-scanner): extend BaseScanner for jellyfin scanner #2226 is merged
  • I have read and followed the contribution guidelines.
  • Disclosed any use of AI (see our policy)
    • AI Assistance: Claude Code was used to implement the bulk of the code changes.
  • I have updated the documentation accordingly.
  • All new and existing tests passed.
  • Successful build pnpm build
  • Translation keys pnpm i18n:extract
  • Database migration (if required)

Copy link
Member

@gauthier-th gauthier-th left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't read the details of your implementation, but couldn't this just be done by disabling the media server related jobs (Recently Added and Full Scan jobs), and with a slight modification in the Availability Sync job?

@samohtxotom
Copy link
Contributor Author

I didn't read the details of your implementation, but couldn't this just be done by disabling the media server related jobs (Recently Added and Full Scan jobs), and with a slight modification in the Availability Sync job?

Yeah it would work but you'd miss out on the ratingKey enrichment from Plex, meaning the Play on Plex button wouldn't ever show. This currently still runs the scan but only enriches existing media entries that radarr/sonarr have created. Happy to change it to the teams preference, but I thought this had less impact on UX.

@github-actions
Copy link

This pull request has merge conflicts. Please resolve the conflicts so the PR can be successfully reviewed and merged.

…edia availability checks

Introduced a new setting `prioritizeRadarrSonarr` to the main settings interface. Updated
availability sync logic to prioritize Radarr/Sonarr for media availability checks, ignoring
Plex/Jellyfin/Emby when enabled. Modified scanners to skip updates and creation of media when
`prioritizeRadarrSonarr` is enabled.

fix seerr-team#2235
@samohtxotom samohtxotom force-pushed the feature/radarr-sonarr-priority branch from 7bbe69e to 909b413 Compare January 2, 2026 02:45
@github-actions github-actions bot removed the merge conflict Cannot merge due to merge conflicts label Jan 2, 2026
@samohtxotom samohtxotom marked this pull request as ready for review January 2, 2026 06:28
@samohtxotom samohtxotom requested a review from a team as a code owner January 2, 2026 06:28
@samohtxotom samohtxotom force-pushed the feature/radarr-sonarr-priority branch from 909b413 to 15718e0 Compare January 2, 2026 06:58
@zkatancik
Copy link

Super excited for this 👏

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.

Add media detection Priority for Radarr/Sonarr and ignore media server Availability

3 participants