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

Function activeLinks

src/utils/quicklinksBuilder.ts:217–233  ·  view source on GitHub ↗
(
  type: 'anime' | 'manga',
  id: any,
  searchterm: string,
)

Source from the content-addressed store, hash-verified

215}
216
217export async function activeLinks(
218 type: 'anime' | 'manga',
219 id: any,
220 searchterm: string,
221): Promise<Quicklink[]> {
222 let combined = combinedLinks();
223
224 if (id) {
225 try {
226 combined = await fillFromApi(combined, type, id);
227 } catch (e) {
228 con.m('API Problem').error(e);
229 }
230 }
231
232 return simplifyObject(combined, type, searchterm, id);
233}
234
235export function removeOptionKey(options, key) {
236 if (!key) return options;

Callers 4

malToKissMethod · 0.90
malToKissMethod · 0.90
malToKissMethod · 0.90
malToKissMethod · 0.90

Calls 4

combinedLinksFunction · 0.85
fillFromApiFunction · 0.85
simplifyObjectFunction · 0.85
errorMethod · 0.80

Tested by

no test coverage detected