Add support for Japanese title in MALAPI
This commit is contained in:
parent
595fea00cd
commit
0a4f5d8918
3 changed files with 7 additions and 0 deletions
|
|
@ -132,6 +132,7 @@ export class MALAPI extends APIModel {
|
|||
subType: undefined,
|
||||
title: result.title,
|
||||
englishTitle: result.title_english ?? result.title,
|
||||
japaneseTitle: result.title_japanese,
|
||||
year: year,
|
||||
dataSource: this.apiName,
|
||||
url: result.url,
|
||||
|
|
@ -162,6 +163,7 @@ export class MALAPI extends APIModel {
|
|||
subType: type,
|
||||
title: result.title,
|
||||
englishTitle: result.title_english ?? result.title,
|
||||
japaneseTitle: result.title_japanese,
|
||||
year: year,
|
||||
dataSource: this.apiName,
|
||||
url: result.url,
|
||||
|
|
@ -190,6 +192,7 @@ export class MALAPI extends APIModel {
|
|||
subType: type,
|
||||
title: result.title,
|
||||
englishTitle: result.title_english ?? result.title,
|
||||
japaneseTitle: result.title_japanese,
|
||||
year: year,
|
||||
dataSource: this.apiName,
|
||||
url: result.url,
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@ import { MediaTypeModel } from './MediaTypeModel';
|
|||
export type MovieData = ModelToData<MovieModel>;
|
||||
|
||||
export class MovieModel extends MediaTypeModel {
|
||||
japaneseTitle: string;
|
||||
plot: string;
|
||||
genres: string[];
|
||||
director: string[];
|
||||
|
|
@ -32,6 +33,7 @@ export class MovieModel extends MediaTypeModel {
|
|||
constructor(obj: MovieData) {
|
||||
super();
|
||||
|
||||
this.japaneseTitle = '';
|
||||
this.plot = '';
|
||||
this.genres = [];
|
||||
this.director = [];
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@ import { MediaTypeModel } from './MediaTypeModel';
|
|||
export type SeriesData = ModelToData<SeriesModel>;
|
||||
|
||||
export class SeriesModel extends MediaTypeModel {
|
||||
japaneseTitle: string;
|
||||
plot: string;
|
||||
genres: string[];
|
||||
writer: string[];
|
||||
|
|
@ -33,6 +34,7 @@ export class SeriesModel extends MediaTypeModel {
|
|||
constructor(obj: SeriesData) {
|
||||
super();
|
||||
|
||||
this.japaneseTitle = '';
|
||||
this.plot = '';
|
||||
this.genres = [];
|
||||
this.writer = [];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue