mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-09-24 23:12:34 +08:00
修复东南大学研究生招生网的pubDate (#761)
This commit is contained in:
@@ -18,14 +18,13 @@ module.exports = async (ctx) => {
|
||||
|
||||
const id = map.get(type).id;
|
||||
|
||||
const items = $(`#${id} > table > tbody > tr`)
|
||||
const items = $(`#${id} tr tr`)
|
||||
.map((_, elem) => {
|
||||
const a = $('td:first-child > a', elem);
|
||||
|
||||
return {
|
||||
link: url.resolve(host, a.attr('href')),
|
||||
title: a.attr('title'),
|
||||
pubDate: new Date($('td:nth-child(2)').text()).toUTCString(),
|
||||
pubDate: new Date($('td:nth-child(2)', elem).text()).toUTCString(),
|
||||
};
|
||||
})
|
||||
.get();
|
||||
|
||||
Reference in New Issue
Block a user