Skip to content

Commit

Permalink
fix: change SeriesSearch to MissingEpisodeSearch for season requests (#…
Browse files Browse the repository at this point in the history
…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: #710
  • Loading branch information
PCJones authored Sep 16, 2024
1 parent 45ef150 commit ee7e91c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/api/servarr/sonarr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit ee7e91c

Please sign in to comment.