From b43add238ff790b6b018607800a09177481c6e85 Mon Sep 17 00:00:00 2001 From: Axojhf <20625305+axojhf@users.noreply.github.com> Date: Sat, 15 Oct 2022 17:26:57 +0800 Subject: [PATCH] fix(route): fix warthunder route css selector issue (#11097) --- lib/v2/warthunder/news.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/v2/warthunder/news.js b/lib/v2/warthunder/news.js index d998f216e..c619c928d 100644 --- a/lib/v2/warthunder/news.js +++ b/lib/v2/warthunder/news.js @@ -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) {