diff --git a/server/api/servarr/sonarr.ts b/server/api/servarr/sonarr.ts index 0e623cef6..9dec8ebf9 100644 --- a/server/api/servarr/sonarr.ts +++ b/server/api/servarr/sonarr.ts @@ -257,7 +257,7 @@ class SonarrAPI extends ServarrBase<{ series: createdSeriesResponse.data, }); } else { - logger.error('Failed to add movie to Sonarr', { + logger.error('Failed to add series to Sonarr', { label: 'Sonarr', options, }); @@ -342,7 +342,7 @@ class SonarrAPI extends ServarrBase<{ return newSeasons; } - public removeSerie = async (serieId: number): Promise => { + public removeSeries = async (serieId: number): Promise => { try { const { id, title } = await this.getSeriesByTvdbId(serieId); await this.axios.delete(`/series/${id}`, { @@ -351,9 +351,9 @@ class SonarrAPI extends ServarrBase<{ addImportExclusion: false, }, }); - logger.info(`[Radarr] Removed serie ${title}`); + logger.info(`[Sonarr] Removed series ${title}`); } catch (e) { - throw new Error(`[Radarr] Failed to remove serie: ${e.message}`); + throw new Error(`[Sonarr] Failed to remove series: ${e.message}`); } }; diff --git a/server/routes/media.ts b/server/routes/media.ts index b9983d8bf..f4fc878bd 100644 --- a/server/routes/media.ts +++ b/server/routes/media.ts @@ -271,7 +271,7 @@ mediaRoutes.delete( if (!tvdbId) { throw new Error('TVDB ID not found'); } - await (service as SonarrAPI).removeSerie(tvdbId); + await (service as SonarrAPI).removeSeries(tvdbId); } return res.status(204).send();