Skip to content

Commit

Permalink
Update index.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
koenoe committed Dec 4, 2024
1 parent 5740037 commit 1507502
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/lib/mdblist/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,13 @@ export async function fetchTvSeriesOrMovie(
},
})) as {
description: string;
imdbid: string;
ids: {
imdb: string;
tmdb: number;
trakt: number;
tvdb: number;
mal: number;
};
ratings: Array<{
popular: number;
score: number;
Expand All @@ -69,8 +75,6 @@ export async function fetchTvSeriesOrMovie(
score: number;
score_average: number;
title: string;
tmdbid: number;
traktid: number;
type: string;
year: number;
};
Expand All @@ -91,7 +95,7 @@ export async function fetchRating(
return rating && rating.value > 0
? {
...rating,
imdbid: response.imdbid,
imdbid: response.ids.imdb,
}
: null;
}
Expand Down

0 comments on commit 1507502

Please sign in to comment.