Merge pull request #106 from onesvat/master
Add plot field when fetching data from omdb
This commit is contained in:
commit
03cba2d8b2
3 changed files with 6 additions and 0 deletions
|
|
@ -143,6 +143,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: [],
|
||||||
|
|
@ -175,6 +176,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: [],
|
||||||
|
|
|
||||||
|
|
@ -12,6 +12,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[];
|
||||||
|
|
@ -35,6 +36,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;
|
||||||
|
|
|
||||||
|
|
@ -21,6 +21,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[];
|
||||||
|
|
@ -46,6 +47,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