Serie lookup url corrected

This commit is contained in:
jeanchristophe.mqt@gmail.com 2024-03-29 09:27:58 +01:00
parent 3511cc2276
commit 694ae59f22
2 changed files with 2 additions and 2 deletions

View file

@ -115,7 +115,7 @@ var getId = function (args, arr, arrHost, headers, fileName, refreshType) { retu
_b = Number;
return [4 /*yield*/, args.deps.axios({
method: 'get',
url: "".concat(arrHost, "/api/v3/").concat(arr === 'radarr' ? 'movie' : 'serie', "/lookup?term=imdb:").concat(imdbId),
url: "".concat(arrHost, "/api/v3/").concat(arr === 'radarr' ? 'movie' : 'series', "/lookup?term=imdb:").concat(imdbId),
headers: headers,
})];
case 1:

View file

@ -102,7 +102,7 @@ const getId = async (
? Number(
(await args.deps.axios({
method: 'get',
url: `${arrHost}/api/v3/${arr === 'radarr' ? 'movie' : 'serie'}/lookup?term=imdb:${imdbId}`,
url: `${arrHost}/api/v3/${arr === 'radarr' ? 'movie' : 'series'}/lookup?term=imdb:${imdbId}`,
headers,
})).data?.id ?? -1,
)