style: auto format

This commit is contained in:
github-actions[bot] 2023-04-04 19:28:39 +00:00
parent 8c66b20220
commit fde08f1e79
1 changed files with 7 additions and 5 deletions

View File

@ -92,11 +92,13 @@ const basicInfoDict = {
const getInfoUrlList = async (url) => {
const response = await got(url);
const $ = cheerio.load(response.data);
const infoList = $('div.sl').toArray().map((item) => ({
title: $('a', item).attr('title'),
url: `${rootUrl}${$('a', item).attr('href')}`,
pubDate: parseDate(timezone($('div > div:nth-child(4)', item).html().trim()), +8),
}));
const infoList = $('div.sl')
.toArray()
.map((item) => ({
title: $('a', item).attr('title'),
url: `${rootUrl}${$('a', item).attr('href')}`,
pubDate: parseDate(timezone($('div > div:nth-child(4)', item).html().trim()), +8),
}));
return infoList;
};