From 8431ef3f3b2a7e66fdb78cf4582fda95d0d89ebe Mon Sep 17 00:00:00 2001 From: 0xsysr3ll <0xsysr3ll@pm.me> Date: Tue, 20 Jan 2026 20:07:16 +0100 Subject: [PATCH] fix(availability-sync): remove incorrect existence flags for media in Radarr, Sonarr, and Plex Signed-off-by: 0xsysr3ll <0xsysr3ll@pm.me> --- server/lib/availabilitySync.ts | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/server/lib/availabilitySync.ts b/server/lib/availabilitySync.ts index bd01b4574..3e2f634e2 100644 --- a/server/lib/availabilitySync.ts +++ b/server/lib/availabilitySync.ts @@ -646,7 +646,6 @@ class AvailabilitySync { } } catch (ex) { if (!ex.message.includes('404')) { - existsInRadarr = true; logger.debug( `Failure retrieving the ${is4k ? '4K' : 'non-4K'} movie [TMDB ID ${ media.tmdbId @@ -700,7 +699,6 @@ class AvailabilitySync { } } catch (ex) { if (!ex.message.includes('404')) { - existsInSonarr = true; preventSeasonSearch = true; logger.debug( `Failure retrieving the ${is4k ? '4K' : 'non-4K'} show [TMDB ID ${ @@ -820,10 +818,21 @@ class AvailabilitySync { if (plexMedia) { existsInPlex = true; + logger.debug( + `Found ${is4k ? '4K' : 'non-4K'} ${ + media.mediaType === 'tv' ? 'show' : 'movie' + } [TMDB ID ${media.tmdbId}] in Plex`, + { + ratingKey: is4k ? ratingKey4k : ratingKey, + plexTitle: plexMedia.title, + plexRatingKey: plexMedia.ratingKey, + plexGuid: plexMedia.guid, + label: 'Availability Sync', + } + ); } } catch (ex) { if (!ex.message.includes('404')) { - existsInPlex = true; preventSeasonSearch = true; logger.debug( `Failure retrieving the ${is4k ? '4K' : 'non-4K'} ${