diff --git a/download-character-img/index.js b/download-character-img/index.js index f823312..dac7648 100644 --- a/download-character-img/index.js +++ b/download-character-img/index.js @@ -56,6 +56,18 @@ const wikiConfigs = [ nameTransform: (name) => name.replace(/character-/, '').replace(/-icon$/, ''), verifyApiUrl: 'https://paul.ren/api/page/get?slug=photo-collection-sr', }, + { + name: 'zzz', + baseUrl: 'https://zenless-zone-zero.fandom.com', + wikiTitle: 'Agent/List', + savePath: path.join(__dirname, 'output', 'zzz'), + scopeSelector: 'table.article-table', + scopeIndex: 0, + imageSelector: 'td:first-child img[data-relevant="1"]', + imageUrlAttr: 'src', + nameTransform: (name) => name.replace(/agent-/, '').replace(/-icon$/, ''), + verifyApiUrl: 'https://paul.ren/api/page/get?slug=photo-collection-zzz', + }, { name: 'nte', baseUrl: 'https://neverness-to-everness.fandom.com/wiki/Character/List', @@ -153,6 +165,7 @@ function extractImages(html, config) { const cleanedUrl = cleanImageUrl(rawUrl); const rawName = generateImageName(cleanedUrl); + console.log('rawName', rawName); if (!rawName || seenNames.has(rawName)) { return;