From ee7e91c7c948b17b556a625919eb1252a721bb6e Mon Sep 17 00:00:00 2001 From: Jonas F Date: Mon, 16 Sep 2024 19:07:43 +0200 Subject: [PATCH] fix: change SeriesSearch to MissingEpisodeSearch for season requests (#711) This fix changes the behavior of how Overseerr requests series data from Sonarr. Previously, when adding new seasons to a partially available series, Overseerr would initiate a SeriesSearch, causing Sonarr to search for all monitored seasons of the series, including those already available. This behavior is now corrected by executing a MissingEpisodeSearchCommand for the specific seriesId, which aligns with the intended behavior of only searching for and adding the newly requested seasons that are not already available. Resolves: https://github.com/Fallenbagel/jellyseerr/issues/710 --- server/api/servarr/sonarr.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/api/servarr/sonarr.ts b/server/api/servarr/sonarr.ts index 67c9dd2a5..8ae054edb 100644 --- a/server/api/servarr/sonarr.ts +++ b/server/api/servarr/sonarr.ts @@ -303,10 +303,10 @@ class SonarrAPI extends ServarrBase<{ }); try { - await this.runCommand('SeriesSearch', { seriesId }); + await this.runCommand('MissingEpisodeSearch', { seriesId }); } catch (e) { logger.error( - 'Something went wrong while executing Sonarr series search.', + 'Something went wrong while executing Sonarr missing episode search.', { label: 'Sonarr API', errorMessage: e.message,