fix(route): fix warthunder route css selector issue (#11097)

This commit is contained in:
Axojhf 2022-10-15 17:26:57 +08:00 committed by GitHub
parent 4577c8f664
commit b43add238f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ module.exports = async (ctx) => {
const pageFace = $('div.showcase__item.widget')
.map((_, item) => {
item = $(item);
let pubDate = parseDate(item.find('div.widget__content > ul > li').text(), 'D MMMM YYYY');
let pubDate = parseDate(item.find('div.widget__content > ul > li.widget-meta__item.widget-meta__item--right').text(), 'D MMMM YYYY');
pubDate = timezone(pubDate, 0);
const category = [];
if (item.find('div.widget__pin').length !== 0) {