add plot field when fetching data from omdb
This commit is contained in:
parent
5054b0f20f
commit
c2cdc0ef7f
3 changed files with 6 additions and 0 deletions
|
|
@ -140,6 +140,7 @@ export class OMDbAPI extends APIModel {
|
||||||
onlineRating: Number.parseFloat(result.imdbRating ?? 0),
|
onlineRating: Number.parseFloat(result.imdbRating ?? 0),
|
||||||
actors: result.Actors?.split(', ') ?? [],
|
actors: result.Actors?.split(', ') ?? [],
|
||||||
image: result.Poster ?? '',
|
image: result.Poster ?? '',
|
||||||
|
plot: result.Plot ?? '',
|
||||||
|
|
||||||
released: true,
|
released: true,
|
||||||
streamingServices: [],
|
streamingServices: [],
|
||||||
|
|
@ -170,6 +171,7 @@ export class OMDbAPI extends APIModel {
|
||||||
onlineRating: Number.parseFloat(result.imdbRating ?? 0),
|
onlineRating: Number.parseFloat(result.imdbRating ?? 0),
|
||||||
actors: result.Actors?.split(', ') ?? [],
|
actors: result.Actors?.split(', ') ?? [],
|
||||||
image: result.Poster ?? '',
|
image: result.Poster ?? '',
|
||||||
|
plot: result.Plot ?? '',
|
||||||
|
|
||||||
released: true,
|
released: true,
|
||||||
streamingServices: [],
|
streamingServices: [],
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,7 @@ export class MovieModel extends MediaTypeModel {
|
||||||
onlineRating: number;
|
onlineRating: number;
|
||||||
actors: string[];
|
actors: string[];
|
||||||
image: string;
|
image: string;
|
||||||
|
plot: string;
|
||||||
|
|
||||||
released: boolean;
|
released: boolean;
|
||||||
streamingServices: string[];
|
streamingServices: string[];
|
||||||
|
|
@ -29,6 +30,7 @@ export class MovieModel extends MediaTypeModel {
|
||||||
this.onlineRating = undefined;
|
this.onlineRating = undefined;
|
||||||
this.actors = undefined;
|
this.actors = undefined;
|
||||||
this.image = undefined;
|
this.image = undefined;
|
||||||
|
this.plot = undefined;
|
||||||
|
|
||||||
this.released = undefined;
|
this.released = undefined;
|
||||||
this.streamingServices = undefined;
|
this.streamingServices = undefined;
|
||||||
|
|
|
||||||
|
|
@ -19,6 +19,7 @@ export class SeriesModel extends MediaTypeModel {
|
||||||
onlineRating: number;
|
onlineRating: number;
|
||||||
actors: string[];
|
actors: string[];
|
||||||
image: string;
|
image: string;
|
||||||
|
plot: string;
|
||||||
|
|
||||||
released: boolean;
|
released: boolean;
|
||||||
streamingServices: string[];
|
streamingServices: string[];
|
||||||
|
|
@ -42,6 +43,7 @@ export class SeriesModel extends MediaTypeModel {
|
||||||
this.onlineRating = undefined;
|
this.onlineRating = undefined;
|
||||||
this.actors = undefined;
|
this.actors = undefined;
|
||||||
this.image = undefined;
|
this.image = undefined;
|
||||||
|
this.plot = undefined;
|
||||||
|
|
||||||
this.released = undefined;
|
this.released = undefined;
|
||||||
this.streamingServices = undefined;
|
this.streamingServices = undefined;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue