Skip to content

Commit

Permalink
Update getmeta.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
drippypop authored Sep 5, 2024
1 parent cc500a7 commit 4bc7f5e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/backend/metadata/getmeta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,12 +135,12 @@ export async function getLegacyMetaFromId(
throw err;
}

let imdbId = data.external_ids.find((v) => v.provider === "imdb_latest")
let imdbId = data.external_ids.find( (v) => v.provider === "imdb_latest")
?.external_id;
if (!imdbId)
imdbId = data.external_ids.find((v) => v.provider === "imdb")?.external_id;

let tmdbId = data.external_ids.find((v) => v.provider === "tmdb_latest")
let tmdbId = data.external_ids.find( (v) => v.provider === "tmdb_latest")
?.external_id;
if (!tmdbId)
tmdbId = data.external_ids.find((v) => v.provider === "tmdb")?.external_id;
Expand Down

0 comments on commit 4bc7f5e

Please sign in to comment.