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

Method getTitle

src/_provider/Search/searchClass.ts:433–441  ·  view source on GitHub ↗
(response, link)

Source from the content-addressed store, hash-verified

431 }
432
433 function getTitle(response, link) {
434 try {
435 const id = link.split('/')[4];
436 return response.responseText.split(`rel="#sinfo${id}"><strong>`)[1].split('<')[0];
437 } catch (e) {
438 logger.error(e);
439 return '';
440 }
441 }
442
443 const response = await api.request.xhr('GET', url);
444

Callers 7

initProgressFunction · 0.45
emitUpdateFunction · 0.45
titleMethod · 0.45
relatedMethod · 0.45
prepareDataMethod · 0.45
_getTitleMethod · 0.45
searchFunction · 0.45

Calls 1

errorMethod · 0.80

Tested by

no test coverage detected