Modified the PR by onesvat to add plot to media

I modified synopsis in manga to plot and added the plot in MALapi that also uses the movie model, I did the same thing for series
This commit is contained in:
ltctceplrm 2023-12-08 03:32:07 +01:00
parent a31a6191cd
commit 57de3d614c
6 changed files with 13 additions and 4 deletions

View file

@ -134,6 +134,7 @@ export class OMDbAPI extends APIModel {
url: `https://www.imdb.com/title/${result.imdbID}/`,
id: result.imdbID,
plot: result.Plot ?? '',
genres: result.Genre?.split(', ') ?? [],
producer: result.Director ?? 'unknown',
duration: result.Runtime ?? 'unknown',
@ -163,6 +164,7 @@ export class OMDbAPI extends APIModel {
url: `https://www.imdb.com/title/${result.imdbID}/`,
id: result.imdbID,
plot: result.Plot ?? '',
genres: result.Genre?.split(', ') ?? [],
studios: [result.Director] ?? 'unknown',
episodes: 0,