File tree Expand file tree Collapse file tree 4 files changed +23
-0
lines changed Expand file tree Collapse file tree 4 files changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -119,6 +119,9 @@ export class MALAPI extends APIModel {
119
119
image : result . images ?. jpg ?. image_url ?? '' ,
120
120
121
121
released : true ,
122
+ country : [ ] ,
123
+ boxOffice : '' ,
124
+ ageRating : result . rating ?? '' ,
122
125
premiere : this . plugin . dateFormatter . format ( result . aired ?. from , this . apiDateFormat ) ?? 'unknown' ,
123
126
streamingServices : result . streaming ?. map ( ( x : any ) => x . name ) ?? [ ] ,
124
127
@@ -151,6 +154,9 @@ export class MALAPI extends APIModel {
151
154
image : result . images ?. jpg ?. image_url ?? '' ,
152
155
153
156
released : true ,
157
+ country : [ ] ,
158
+ boxOffice : '' ,
159
+ ageRating : result . rating ?? '' ,
154
160
premiere : this . plugin . dateFormatter . format ( result . aired ?. from , this . apiDateFormat ) ?? 'unknown' ,
155
161
streamingServices : result . streaming ?. map ( ( x : any ) => x . name ) ?? [ ] ,
156
162
@@ -181,6 +187,8 @@ export class MALAPI extends APIModel {
181
187
image : result . images ?. jpg ?. image_url ?? '' ,
182
188
183
189
released : true ,
190
+ country : [ ] ,
191
+ ageRating : result . rating ?? '' ,
184
192
airedFrom : this . plugin . dateFormatter . format ( result . aired ?. from , this . apiDateFormat ) ?? 'unknown' ,
185
193
airedTo : this . plugin . dateFormatter . format ( result . aired ?. to , this . apiDateFormat ) ?? 'unknown' ,
186
194
airing : result . airing ,
Original file line number Diff line number Diff line change @@ -154,6 +154,9 @@ export class OMDbAPI extends APIModel {
154
154
image : result . Poster ? result . Poster . replace ( '_SX300' , '_SX600' ) : '' ,
155
155
156
156
released : true ,
157
+ country : result . Country ?. split ( ', ' ) ?? [ ] ,
158
+ boxOffice : result . BoxOffice ,
159
+ ageRating : result . Rated ,
157
160
streamingServices : [ ] ,
158
161
premiere : this . plugin . dateFormatter . format ( result . Released , this . apiDateFormat ) ?? 'unknown' ,
159
162
@@ -184,6 +187,8 @@ export class OMDbAPI extends APIModel {
184
187
image : result . Poster ? result . Poster . replace ( '_SX300' , '_SX600' ) : '' ,
185
188
186
189
released : true ,
190
+ country : result . Country ?. split ( ', ' ) ?? [ ] ,
191
+ ageRating : result . Rated ,
187
192
streamingServices : [ ] ,
188
193
airing : false ,
189
194
airedFrom : this . plugin . dateFormatter . format ( result . Released , this . apiDateFormat ) ?? 'unknown' ,
Original file line number Diff line number Diff line change @@ -17,6 +17,9 @@ export class MovieModel extends MediaTypeModel {
17
17
image : string ;
18
18
19
19
released : boolean ;
20
+ country : string [ ] ;
21
+ boxOffice : string ;
22
+ ageRating : string ;
20
23
streamingServices : string [ ] ;
21
24
premiere : string ;
22
25
@@ -40,6 +43,9 @@ export class MovieModel extends MediaTypeModel {
40
43
this . image = '' ;
41
44
42
45
this . released = false ;
46
+ this . country = [ ] ;
47
+ this . boxOffice = '' ;
48
+ this . ageRating = '' ;
43
49
this . streamingServices = [ ] ;
44
50
this . premiere = '' ;
45
51
Original file line number Diff line number Diff line change @@ -17,6 +17,8 @@ export class SeriesModel extends MediaTypeModel {
17
17
image : string ;
18
18
19
19
released : boolean ;
20
+ country : string [ ] ;
21
+ ageRating : string ;
20
22
streamingServices : string [ ] ;
21
23
airing : boolean ;
22
24
airedFrom : string ;
@@ -42,6 +44,8 @@ export class SeriesModel extends MediaTypeModel {
42
44
this . image = '' ;
43
45
44
46
this . released = false ;
47
+ this . country = [ ] ;
48
+ this . ageRating = '' ;
45
49
this . streamingServices = [ ] ;
46
50
this . airing = false ;
47
51
this . airedFrom = '' ;
You can’t perform that action at this time.
0 commit comments