mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-15 18:30:53 +08:00
chore(deps-dev): bump prettier from 1.19.1 to 2.0.2
This commit is contained in:
@@ -61,12 +61,7 @@ module.exports = async (ctx) => {
|
||||
.map(async (_, elem) => {
|
||||
const subject = $('.subject a', elem).eq(1);
|
||||
|
||||
const pubDate = pediyUtils.dateParser(
|
||||
$('.date', elem)
|
||||
.eq(0)
|
||||
.text(),
|
||||
8
|
||||
);
|
||||
const pubDate = pediyUtils.dateParser($('.date', elem).eq(0).text(), 8);
|
||||
|
||||
const link = `${baseUrl}${subject.attr('href')}`;
|
||||
const key = `pediy: ${link}`;
|
||||
@@ -84,7 +79,7 @@ module.exports = async (ctx) => {
|
||||
$('.card')
|
||||
.eq(0)
|
||||
.find('.message img')
|
||||
.each(function(_, item) {
|
||||
.each(function (_, item) {
|
||||
item = $(item);
|
||||
|
||||
const src = item.attr('src');
|
||||
@@ -94,10 +89,7 @@ module.exports = async (ctx) => {
|
||||
item.attr('referrerpolicy', 'no-referrer');
|
||||
});
|
||||
|
||||
description = $('.card')
|
||||
.eq(0)
|
||||
.find('.message')
|
||||
.html();
|
||||
description = $('.card').eq(0).find('.message').html();
|
||||
ctx.cache.set(key, description);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user