mirror of
https://github.com/movie-web/movie-web.git
synced 2025-01-14 20:19:09 +01:00
fix more linting
This commit is contained in:
parent
ac28f32ef4
commit
30cc5aa78b
@ -56,19 +56,15 @@ export async function getMetaFromId(
|
|||||||
|
|
||||||
let imdbId = data.external_ids.find(
|
let imdbId = data.external_ids.find(
|
||||||
(v) => v.provider === "imdb_latest"
|
(v) => v.provider === "imdb_latest"
|
||||||
)?.external_id
|
)?.external_id;
|
||||||
if (!imdbId)
|
if (!imdbId)
|
||||||
imdbId = data.external_ids.find(
|
imdbId = data.external_ids.find((v) => v.provider === "imdb")?.external_id;
|
||||||
(v) => v.provider === "imdb"
|
|
||||||
)?.external_id;
|
|
||||||
|
|
||||||
let tmdbId = data.external_ids.find(
|
let tmdbId = data.external_ids.find(
|
||||||
(v) => v.provider === "tmdb_latest"
|
(v) => v.provider === "tmdb_latest"
|
||||||
)?.external_id
|
)?.external_id;
|
||||||
if (!tmdbId)
|
if (!tmdbId)
|
||||||
tmdbId = data.external_ids.find(
|
tmdbId = data.external_ids.find((v) => v.provider === "tmdb")?.external_id;
|
||||||
(v) => v.provider === "tmdb"
|
|
||||||
)?.external_id;
|
|
||||||
|
|
||||||
if (!imdbId || !tmdbId) throw new Error("not enough info");
|
if (!imdbId || !tmdbId) throw new Error("not enough info");
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user