Final corrections after testing

This commit is contained in:
jeanchristophe.mqt@gmail.com 2024-03-29 11:36:35 +01:00
parent d6b7e51389
commit a02379f240
2 changed files with 8 additions and 8 deletions

View file

@ -103,7 +103,7 @@ const getId = async (
method: 'get',
url: `${arrHost}/api/v3/${arr === 'radarr' ? 'movie' : 'series'}/lookup?term=imdb:${imdbId}`,
headers,
})).data?.id ?? -1,
})).data?.at(0)?.id ?? -1,
)
: -1;
args.jobLog(`${refreshType.content} ${id !== -1 ? `${id} found` : 'not found'} for imdb '${imdbId}'`);