()
| 184 | } |
| 185 | |
| 186 | private info() { |
| 187 | if ( |
| 188 | typeof this.animeI().attributes.subtype !== 'undefined' && |
| 189 | this.animeI().attributes.subtype !== null |
| 190 | ) { |
| 191 | let format = this.animeI().attributes.subtype.toLowerCase().replace('_', ' '); |
| 192 | format = format.charAt(0).toUpperCase() + format.slice(1); |
| 193 | this.meta.info.push({ |
| 194 | title: api.storage.lang('overview_sidebar_Format'), |
| 195 | body: [{ text: format }], |
| 196 | }); |
| 197 | } |
| 198 | |
| 199 | if ( |
| 200 | typeof this.animeI().attributes.episodeCount !== 'undefined' && |
| 201 | this.animeI().attributes.episodeCount !== null |
| 202 | ) |
| 203 | this.meta.info.push({ |
| 204 | title: api.storage.lang('overview_sidebar_Episodes'), |
| 205 | body: [{ text: this.animeI().attributes.episodeCount }], |
| 206 | }); |
| 207 | |
| 208 | if ( |
| 209 | typeof this.animeI().attributes.episodeLength !== 'undefined' && |
| 210 | this.animeI().attributes.episodeLength !== null |
| 211 | ) |
| 212 | this.meta.info.push({ |
| 213 | title: api.storage.lang('overview_sidebar_Duration'), |
| 214 | body: [ |
| 215 | { |
| 216 | text: `${new IntlDuration().setRelativeTime(this.animeI().attributes.episodeLength, 'minutes', 'Duration').getRelativeText()}`, |
| 217 | }, |
| 218 | ], |
| 219 | }); |
| 220 | |
| 221 | if ( |
| 222 | typeof this.animeI().attributes.status !== 'undefined' && |
| 223 | this.animeI().attributes.status !== null |
| 224 | ) { |
| 225 | let status = this.animeI().attributes.status.toLowerCase().replace('_', ' '); |
| 226 | status = status.charAt(0).toUpperCase() + status.slice(1); |
| 227 | this.meta.info.push({ |
| 228 | title: api.storage.lang('overview_sidebar_Status'), |
| 229 | body: [{ text: status }], |
| 230 | }); |
| 231 | } |
| 232 | |
| 233 | if (this.animeI().attributes.startDate) |
| 234 | this.meta.info.push({ |
| 235 | title: api.storage.lang('overview_sidebar_Start_Date'), |
| 236 | body: [ |
| 237 | { |
| 238 | text: new IntlDateTime(this.animeI().attributes.startDate).getDateTimeText(), |
| 239 | }, |
| 240 | ], |
| 241 | }); |
| 242 | |
| 243 | if (this.animeI().attributes.endDate) |
no test coverage detected