diff --git a/src/backend/metadata/getmeta.ts b/src/backend/metadata/getmeta.ts index 08679cdd..c0c9e92c 100644 --- a/src/backend/metadata/getmeta.ts +++ b/src/backend/metadata/getmeta.ts @@ -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");