Hotfix: thepaper unknown title (#1241)

Closes #1240
This commit is contained in:
凉凉 2018-12-07 18:41:00 +08:00 committed by DIYgod
parent 1de4c6d330
commit f08633f8fa
1 changed files with 3 additions and 1 deletions

View File

@ -37,7 +37,9 @@ module.exports = async (ctx) => {
const content = cheerio.load(res.data);
const serverOffset = new Date().getTimezoneOffset() / 60;
const single = {
title: content('h1').text(),
title: $(item)
.find('a')
.text(),
guid: itemUrl,
link: itemUrl.replace('https://m.', 'https://'),
description: content('#v3cont_id > div.news_content > div.news_part_father > div > div:nth-child(1)').html(),