fix thepaper featured
This commit is contained in:
parent
6eeecf0ea5
commit
f90321b4f1
|
|
@ -41,13 +41,15 @@ module.exports = async (ctx) => {
|
||||||
guid: itemUrl,
|
guid: itemUrl,
|
||||||
link: itemUrl.replace('https://m.', 'https://'),
|
link: itemUrl.replace('https://m.', 'https://'),
|
||||||
description: content('#v3cont_id > div.news_content > div.news_part_father > div > div:nth-child(1)').html(),
|
description: content('#v3cont_id > div.news_content > div.news_part_father > div > div:nth-child(1)').html(),
|
||||||
pubDate: dayjs(
|
pubDate: content('#v3cont_id > div.news_content > p:nth-child(3)').html()
|
||||||
content('#v3cont_id > div.news_content > p:nth-child(3)')
|
? dayjs(
|
||||||
.html()
|
content('#v3cont_id > div.news_content > p:nth-child(3)')
|
||||||
.split(' ')[0]
|
.html()
|
||||||
)
|
.split(' ')[0]
|
||||||
.add(-8 - serverOffset, 'hour')
|
)
|
||||||
.toISOString(),
|
.add(-8 - serverOffset, 'hour')
|
||||||
|
.toISOString()
|
||||||
|
: null,
|
||||||
author: content('#v3cont_id > div.news_content > p:nth-child(2)').text(),
|
author: content('#v3cont_id > div.news_content > p:nth-child(2)').text(),
|
||||||
};
|
};
|
||||||
return Promise.resolve(single);
|
return Promise.resolve(single);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue