add imdbId to scrape media

This commit is contained in:
Jorrin
2024-02-05 20:51:46 +01:00
parent a6a3f8042f
commit eeb0b921dc
4 changed files with 83 additions and 46 deletions

View File

@@ -11,8 +11,8 @@ export async function fetchMediaDetails(
try {
const result =
type === "movie"
? await tmdb.movies.details(parseInt(id, 10))
: await tmdb.tvShows.details(parseInt(id, 10));
? await tmdb.movies.details(parseInt(id, 10), ["external_ids"])
: await tmdb.tvShows.details(parseInt(id, 10), ["external_ids"]);
return {
type,