mirror of
https://github.com/sussy-code/smov.git
synced 2024-12-30 16:17:41 +01:00
fix more linting
This commit is contained in:
parent
ac28f32ef4
commit
30cc5aa78b
1 changed files with 4 additions and 8 deletions
|
@ -56,19 +56,15 @@ export async function getMetaFromId(
|
|||
|
||||
let imdbId = data.external_ids.find(
|
||||
(v) => v.provider === "imdb_latest"
|
||||
)?.external_id
|
||||
)?.external_id;
|
||||
if (!imdbId)
|
||||
imdbId = data.external_ids.find(
|
||||
(v) => v.provider === "imdb"
|
||||
)?.external_id;
|
||||
imdbId = data.external_ids.find((v) => v.provider === "imdb")?.external_id;
|
||||
|
||||
let tmdbId = data.external_ids.find(
|
||||
(v) => v.provider === "tmdb_latest"
|
||||
)?.external_id
|
||||
)?.external_id;
|
||||
if (!tmdbId)
|
||||
tmdbId = data.external_ids.find(
|
||||
(v) => v.provider === "tmdb"
|
||||
)?.external_id;
|
||||
tmdbId = data.external_ids.find((v) => v.provider === "tmdb")?.external_id;
|
||||
|
||||
if (!imdbId || !tmdbId) throw new Error("not enough info");
|
||||
|
||||
|
|
Loading…
Reference in a new issue