Conversation
…server is unreachable Fixes season map merging logic to allow sonarr results to override initial false values. Fixes jellyfin error handling to fail-safe (assume media exists) on connection errors. Fix incorrect boolean logic in jellyfin 404/500 checks. fix #2296
Contributor
There was a problem hiding this comment.
Pull request overview
This pull request fixes a critical bug where the availability sync incorrectly marks TV seasons as deleted when the media server (Plex/Jellyfin/Emby) becomes temporarily unreachable, even though the media still exists in Sonarr. The fix restores proper fail-safe behavior and corrects the map merging logic to prioritize data sources correctly.
Changes:
- Simplified and corrected the season map merging logic to use spread operator syntax, ensuring proper priority order (filtered → media server → Sonarr)
- Fixed Jellyfin error handling logic to correctly detect non-404/non-500 errors and fail-safe by assuming media exists when the server is unreachable
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
0xSysR3ll
approved these changes
Jan 16, 2026
gauthier-th
approved these changes
Jan 16, 2026
0xSysR3ll
pushed a commit
to 0xSysR3ll/jellyseerr
that referenced
this pull request
Jan 20, 2026
…server is unreachable (seerr-team#2302)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Fixes an issue where media availability sync would incorrectly mark seasons as deleted when the media server (Plex/Jellyfin/Emby) is temporarily unreachable, even when the media still exists in Sonarr. The bug was caused by faulty season map merging logic that prevented Sonarr's results from overriding the initial "not found" state, combined with incorrect error handling in the Jellyfin implementation. This caused the watchlist sync to recreate requests for already-available media when the media server went offline. The fix restores the original Overseerr map merging behavior and corrects Jellyfin's error handling to fail-safe when the server is unreachable.
How Has This Been Tested?
Screenshots / Logs (if applicable)
Checklist:
pnpm buildpnpm i18n:extract