mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-08 05:59:00 +08:00
chore(deps-dev): bump prettier from 1.19.1 to 2.0.2
This commit is contained in:
@@ -16,17 +16,9 @@ module.exports = async (ctx) => {
|
||||
.slice(0, 5)
|
||||
.get()
|
||||
.map(async (e) => {
|
||||
const pubDate = date(
|
||||
`${$(e)
|
||||
.find('.timestamp')
|
||||
.text()
|
||||
.trim()}`,
|
||||
8
|
||||
);
|
||||
const pubDate = date(`${$(e).find('.timestamp').text().trim()}`, 8);
|
||||
|
||||
const link = `https://chuansongme.com${$(e)
|
||||
.find('.question_link')
|
||||
.attr('href')}`;
|
||||
const link = `https://chuansongme.com${$(e).find('.question_link').attr('href')}`;
|
||||
|
||||
const response = await ctx.cache.tryGet(link, async () => (await got.get(link)).data);
|
||||
|
||||
@@ -54,15 +46,9 @@ module.exports = async (ctx) => {
|
||||
);
|
||||
|
||||
ctx.state.data = {
|
||||
title: `微信公众号 - ${$('.inline_editor_content')
|
||||
.first()
|
||||
.text()
|
||||
.trim()}`,
|
||||
title: `微信公众号 - ${$('.inline_editor_content').first().text().trim()}`,
|
||||
link,
|
||||
description: $('.inline_editor_content')
|
||||
.last()
|
||||
.text()
|
||||
.trim(),
|
||||
description: $('.inline_editor_content').last().text().trim(),
|
||||
item: items,
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user