(data)
| 119 | } |
| 120 | |
| 121 | private info(data) { |
| 122 | if (data.anime_type) |
| 123 | this.meta.info.push({ |
| 124 | title: api.storage.lang('overview_sidebar_Format'), |
| 125 | body: [{ text: data.anime_type }], |
| 126 | }); |
| 127 | |
| 128 | if (data.total_episodes) |
| 129 | this.meta.info.push({ |
| 130 | title: api.storage.lang('overview_sidebar_Episodes'), |
| 131 | body: [{ text: data.total_episodes }], |
| 132 | }); |
| 133 | |
| 134 | if (data.status) |
| 135 | this.meta.info.push({ |
| 136 | title: api.storage.lang('overview_sidebar_Status'), |
| 137 | body: [{ text: data.status }], |
| 138 | }); |
| 139 | |
| 140 | if (data.year) |
| 141 | this.meta.info.push({ |
| 142 | title: api.storage.lang('overview_sidebar_Season'), |
| 143 | body: [{ text: data.year }], |
| 144 | }); |
| 145 | |
| 146 | if (data.airs && data.airs.day && data.airs.time) { |
| 147 | let body: any = [{ text: `${data.airs.day} at ${data.airs.time}` }]; |
| 148 | |
| 149 | const weekDate = getWeektime(data.airs.day, data.airs.time); |
| 150 | if (weekDate) { |
| 151 | const broadcastDate = dateFromTimezoneToTimezone( |
| 152 | weekDate, |
| 153 | data.airs.timezone || 'Asia/Tokyo', |
| 154 | ); |
| 155 | body = [ |
| 156 | { |
| 157 | date: broadcastDate, |
| 158 | type: 'weektime', |
| 159 | }, |
| 160 | ]; |
| 161 | } |
| 162 | |
| 163 | this.meta.info.push({ |
| 164 | title: api.storage.lang('overview_sidebar_Broadcast'), |
| 165 | body, |
| 166 | }); |
| 167 | } |
| 168 | |
| 169 | if (data.network) |
| 170 | this.meta.info.push({ |
| 171 | title: api.storage.lang('overview_sidebar_Licensor'), |
| 172 | body: [{ text: data.network }], |
| 173 | }); |
| 174 | |
| 175 | const genres: any[] = []; |
| 176 | data.genres.forEach(i => { |
| 177 | if (genres.length < 6) { |
| 178 | genres.push({ |
no test coverage detected