修复东南大学研究生招生网的pubDate (#761)

This commit is contained in:
Lince
2018-09-21 18:43:23 +08:00
committed by DIYgod
parent 6ee118475f
commit 1fb20582e9
+2 -3
View File
@@ -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();