MCPcopy Create free account
hub / github.com/MALSync/MALSync / characters

Method characters

src/_provider/Kitsu/metaOverview.ts:144–158  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

142 }
143
144 private characters() {
145 if (this.animeInfo.included && this.animeInfo.included.length) {
146 this.animeInfo.included.forEach(i => {
147 if (i.type === 'characters' && this.meta.characters.length < 10) {
148 const { name } = i.attributes;
149
150 this.meta.characters.push({
151 img: i.attributes.image !== null ? i.attributes.image.original : '',
152 name,
153 url: `https://myanimelist.net/character/${i.attributes.malId}`,
154 });
155 }
156 });
157 }
158 }
159
160 private statistics() {
161 if (this.animeI().attributes.averageRating !== null)

Callers 1

_initMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected