Serie lookup url corrected

make-only-subtitle-default
jeanchristophe.mqt@gmail.com 2 years ago
parent 3511cc2276
commit 694ae59f22

@ -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…
Cancel
Save