fix(route): 中国投资者网标题丢失 (#16056)

This commit is contained in:
Ethan Shen
2024-07-02 00:17:05 +08:00
committed by GitHub
parent 674fa0f7b0
commit 874da471d9
+1 -7
View File
@@ -81,14 +81,8 @@ export const handler = async (ctx) => {
const title = $$('div.contentText h2').text();
const description = $$('div.TRS_Editor').html();
item.title = title;
item.title = title || item.title;
item.description = description;
item.pubDate = parseDate(
$$('span.timeSpan')
.text()
.trim()
.match(/(\d{4}-\d{2}-\d{2})/)?.[1] ?? ''
);
item.author = $$('span.timeSpan')
.text()
.trim()