mirror of
https://github.com/movie-web/native-app.git
synced 2025-09-13 18:13:25 +00:00
add imdbId to scrape media
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user