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

Method identifierToDbKey

src/_provider/Search/searchClass.ts:584–592  ·  view source on GitHub ↗
(title)

Source from the content-addressed store, hash-verified

582 }
583
584 protected identifierToDbKey(title) {
585 if (this.page.database === 'Crunchyroll') {
586 return encodeURIComponent(title.toLowerCase().split('#')[0]).replace(/\./g, '%2E');
587 }
588 if (this.page.database === 'MangaFire') {
589 return encodeURIComponent(title.toLowerCase().split('#')[0]);
590 }
591 return title.toLowerCase().split('#')[0].replace(/\./g, '%2E');
592 }
593
594 // Rules
595 rules: RulesClass | undefined;

Callers 2

firebaseMethod · 0.95
malSyncMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected