MCPcopy
hub / github.com/MALSync/MALSync / getMalUrl

Method getMalUrl

src/simkl/simklClass.ts:86–96  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

84 }
85
86 async getMalUrl() {
87 const urlpart = utils.urlPart(this.url, 3);
88 if (urlpart === 'anime' || urlpart === 'manga') {
89 const simklId = utils.urlPart(this.url, 4);
90 return this.simklIdToMal(simklId).then(malId => {
91 if (!malId) return '';
92 return `https://myanimelist.net/${urlpart}/${malId}/${utils.urlPart(this.url, 5)}`;
93 });
94 }
95 return '';
96 }
97
98 authentication() {
99 try {

Callers 8

generalSingleTestsFunction · 0.45
messageAniListListenerFunction · 0.45
messageMangaBakaListenerFunction · 0.45
messageSimklListenerFunction · 0.45
messageKitsuListenerFunction · 0.45
compilePageFunction · 0.45
onsiteSearchMethod · 0.45
presenceMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected