fix(route/sjtu/yzb): Correct title and date. (#15387)

This commit is contained in:
Andvari
2024-04-27 20:18:29 +08:00
committed by GitHub
parent db2b5cc326
commit b55cb25287
+2 -2
View File
@@ -47,8 +47,8 @@ async function handler(ctx) {
.toArray()
.map((elem) => ({
link: new URL(elem.attribs.href, pageUrl).href,
title: elem.attribs.title,
pubDate: parseDate($(elem.next).text().trim()),
title: $(elem).text(),
pubDate: parseDate($(elem.next?.next).text().trim()),
})),
};
}