Skip to content

Commit

Permalink
fix: When a Tvdb ID isn't found, a warning with the media item's titl…
Browse files Browse the repository at this point in the history
…e is now displayed
  • Loading branch information
jorenn92 committed Sep 9, 2024
1 parent af65268 commit fb27332
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions server/src/modules/rules/getter/sonarr-getter.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,13 @@ export class SonarrGetterService {

const tvdbId = await this.findTvdbidFromPlexLibItem(libItem);

if (!tvdbId) {
this.logger.warn(
`[TVDB] Failed to fetch tvdb id for '${libItem.title}'`,
);
return null;
}

if (tvdbId) {
const showResponse =
await this.servarrService.SonarrApi.getSeriesByTvdbId(tvdbId);
Expand Down

0 comments on commit fb27332

Please sign in to comment.