From 955b077c13e29cced39100c4845df57c69ef4685 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 22 May 2023 12:43:10 +0000 Subject: [PATCH] style: auto format --- docs/anime.md | 12 ++++++------ lib/v2/comicat/search.js | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/docs/anime.md b/docs/anime.md index e0a0e7ac7..2485104cb 100644 --- a/docs/anime.md +++ b/docs/anime.md @@ -191,12 +191,6 @@ pageClass: routes -## Comicat - -### 搜索关键词 - - - ## CnGal ### 每周速报 @@ -207,6 +201,12 @@ pageClass: routes +## Comicat + +### 搜索关键词 + + + ## DLsite ### 通用 diff --git a/lib/v2/comicat/search.js b/lib/v2/comicat/search.js index 9b0b43d5c..b5ffdb161 100644 --- a/lib/v2/comicat/search.js +++ b/lib/v2/comicat/search.js @@ -11,11 +11,11 @@ module.exports = async (ctx) => { const list = $('#listTable tbody > tr') .toArray() .map((item) => ({ - title: $(item).find('td:nth-child(3)').text().trim(), - link: `${baseUrl}/${$(item).find('td:nth-child(3) a').attr('href')}`, - category: $(item).find('td:nth-child(2)').text().trim(), - author: $(item).find('td:nth-child(8)').text().trim(), - })); + title: $(item).find('td:nth-child(3)').text().trim(), + link: `${baseUrl}/${$(item).find('td:nth-child(3) a').attr('href')}`, + category: $(item).find('td:nth-child(2)').text().trim(), + author: $(item).find('td:nth-child(8)').text().trim(), + })); const items = await Promise.all( list.map((item) => @@ -37,6 +37,6 @@ module.exports = async (ctx) => { ctx.state.data = { title: `Comicat - ${keyword}`, link: `${baseUrl}/search.php?keyword=${encodeURIComponent(keyword)}`, - item: items + item: items, }; };