diff --git a/lib/routes/novel/biquge.js b/lib/routes/novel/biquge.js index b27237208..b57481113 100644 --- a/lib/routes/novel/biquge.js +++ b/lib/routes/novel/biquge.js @@ -25,6 +25,7 @@ module.exports = async (ctx) => { .map((_, e) => ({ title: e.children[0].data, link: e.attribs.href, + pubDate: new Date((parseInt(e.attribs.href.split('/').pop().replace('.html', '')) - 15015015) * 10000).toUTCString(), })) .get(); @@ -49,6 +50,7 @@ module.exports = async (ctx) => { title: item.title, description, link: item.link, + pubDate: item.pubDate, }; ctx.cache.set(item.link, JSON.stringify(single)); return Promise.resolve(single);