mirror of
https://github.com/fallenbagel/jellyseerr.git
synced 2026-01-10 16:47:54 -05:00
feat(api): add external ids to movie/tv response
This commit is contained in:
@@ -7,6 +7,8 @@ import {
|
||||
Crew,
|
||||
mapCast,
|
||||
mapCrew,
|
||||
ExternalIds,
|
||||
mapExternalIds,
|
||||
} from './common';
|
||||
|
||||
export interface MovieDetails {
|
||||
@@ -45,6 +47,7 @@ export interface MovieDetails {
|
||||
crew: Crew[];
|
||||
};
|
||||
request?: MediaRequest;
|
||||
externalIds: ExternalIds;
|
||||
}
|
||||
|
||||
export const mapMovieDetails = (
|
||||
@@ -84,5 +87,6 @@ export const mapMovieDetails = (
|
||||
cast: movie.credits.cast.map(mapCast),
|
||||
crew: movie.credits.crew.map(mapCrew),
|
||||
},
|
||||
externalIds: mapExternalIds(movie.external_ids),
|
||||
request,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user