MCPcopy Index your code
hub / github.com/MALSync/MALSync / info

Method info

src/_provider/Simkl/metaOverview.ts:121–205  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

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({

Callers 4

_initMethod · 0.95
keyInterruptMethod · 0.45
apiMethod · 0.45
firebaseMethod · 0.45

Calls 5

getWeektimeFunction · 0.90
langMethod · 0.80
getRelativeTextMethod · 0.80
setRelativeTimeMethod · 0.80

Tested by

no test coverage detected