BUG: Missing Sonarr link button on TV request cards (Ombi integration) #58
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
The Sonarr deep-link button (the icon that takes administrators directly to the matching series in Sonarr) is missing from TV request cards in the Ombi requests section.
The equivalent Radarr link button works correctly on movie request cards.
This affects administrators who have Ombi integration enabled and use Sonarr for TV shows.
Steps to Reproduce
OMBI_URL+OMBI_API_KEY).Expected Behavior
TV request cards should display a clickable Sonarr icon that deep-links directly to the series in Sonarr (e.g.
/series/{sonarrSeriesId}), exactly like movie cards show the Radarr icon.Actual Behavior
Root Cause Analysis
Confirmed Issue (Frontend)
File:
client/src/ui/requests.js(line ~197)The ID extraction logic used to build the Ombi deep-link (and potentially influence Sonarr/Radarr link rendering) is incomplete:
Problem:
tvDbIdandtvdbId(camelCase variants) are missing from the list.Ombi sometimes returns the TVDB ID under these property names. When the ID cannot be reliably extracted, the Sonarr link generation logic fails to produce a valid URL.
Suspected Backend Issue
The original analysis referenced a function
decorateRequestsWithArrLinksinserver/utils/ombiHelpers.jsthat was responsible for enriching Ombi requests witharrLinkandarrTypefields.Current Status (as of 2026-05-27):
server/utils/ombiHelpers.jsorserver/routes/ombi.js.mediaType: 'tv'/'movie'), but the Sonarr/Radarr link decoration logic appears to have been refactored or moved.Likely Root Cause (Backend):
The backend fails to populate
request.arrLink(or equivalent) for TV requests because the TVDB ID extraction logic is incomplete or missing the same property variants (tvDbId,tvdbId).Without a valid
arrLink, the frontend has no URL to render the Sonarr button.Impact
Proposed Fix
1. Frontend Fix (Confirmed Safe)
File:
client/src/ui/requests.jsUpdate the ID extraction to include all common TVDB property variants:
2. Backend Fix (Requires Location Confirmation)
Once the current location of Sonarr/Radarr link decoration is identified, apply similar defensive ID extraction:
Example pattern to apply wherever TVDB ID resolution occurs:
Then use
tvdbId(preferred) ortmdbId(fallback) to generate the Sonarr deep link.Recommended Next Steps (for Maintainers)
arrLink,arrType, or Sonarr deep-link generation.tvDbId,theTvdbId, etc.).Environment
Additional Notes
Resolved in commit
5933e09652.