feat: 角色下载脚本适配绝区零
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user