Corrected lookup endpoint param name

This commit is contained in:
jeanchristophe.mqt@gmail.com 2024-03-29 00:20:29 +01:00
parent e5638dda65
commit 1bc893b7b9
2 changed files with 2 additions and 2 deletions

View file

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

View file

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