Merge pull request #106 from onesvat/master

Add plot field when fetching data from omdb
This commit is contained in:
Moritz Jung 2024-05-27 22:20:18 +02:00 committed by GitHub
commit 03cba2d8b2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 6 additions and 0 deletions

View file

@ -143,6 +143,7 @@ export class OMDbAPI extends APIModel {
onlineRating: Number.parseFloat(result.imdbRating ?? 0),
actors: result.Actors?.split(', ') ?? [],
image: result.Poster ?? '',
plot: result.Plot ?? '',
released: true,
streamingServices: [],
@ -175,6 +176,7 @@ export class OMDbAPI extends APIModel {
onlineRating: Number.parseFloat(result.imdbRating ?? 0),
actors: result.Actors?.split(', ') ?? [],
image: result.Poster ?? '',
plot: result.Plot ?? '',
released: true,
streamingServices: [],