Skip to content

Commit

Permalink
feat: ignore updating existing items, if configured
Browse files Browse the repository at this point in the history
  • Loading branch information
maxnatamo committed Sep 21, 2024
1 parent ad885fa commit c8718a2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Provider.Radarr/src/RadarrClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ await this._client
};

// If the movie already exists, just update it.
if(movie.Id is not null)
if(movie.Id is not null && configuration.UpdateExisting)
{
IFlurlResponse newMovieResponse = await this._client
.Request($"/api/v3/movie/{movie.Id}")
Expand Down
2 changes: 1 addition & 1 deletion src/Provider.Sonarr/src/SonarrClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ await this._client
};

// If the series already exists, just update it.
if(series.Id is not null)
if(series.Id is not null && configuration.UpdateExisting)
{
IFlurlResponse newSeriesResponse = await this._client
.Request($"/api/v3/series/{series.Id}")
Expand Down

0 comments on commit c8718a2

Please sign in to comment.