mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-09 07:29:04 -07:00
Corrected lookup endpoint param name
This commit is contained in:
parent
e5638dda65
commit
1bc893b7b9
2 changed files with 2 additions and 2 deletions
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue