mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-09 15:38:19 -07:00
Serie lookup url corrected
This commit is contained in:
parent
3511cc2276
commit
694ae59f22
2 changed files with 2 additions and 2 deletions
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue