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

@ -3,6 +3,7 @@ import { mediaDbTag, migrateObject } from '../utils/Utils';
import { MediaType } from '../utils/MediaType';
export class MovieModel extends MediaTypeModel {
plot: string;
genres: string[];
producer: string;
duration: string;
@ -23,6 +24,7 @@ export class MovieModel extends MediaTypeModel {
constructor(obj: any = {}) {
super();
this.plot = undefined;
this.genres = undefined;
this.producer = undefined;
this.duration = undefined;
@ -60,4 +62,4 @@ export class MovieModel extends MediaTypeModel {
getSummary(): string {
return this.englishTitle + ' (' + this.year + ')';
}
}
}