mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-12 16:20:27 +08:00
style: auto format
This commit is contained in:
@@ -17,7 +17,7 @@ module.exports = async (ctx) => {
|
||||
const summary = $('div.indexs').clone().children().remove().end().text().trim();
|
||||
const author = $('div.time_s > a').first().text();
|
||||
let imgUrl = 'http:' + ($('img').attr('src') || $('img').attr('data-original'));
|
||||
if (imgUrl.slice(-7,) === "!square") {
|
||||
if (imgUrl.slice(-7) === '!square') {
|
||||
imgUrl = imgUrl.slice(0, -7);
|
||||
}
|
||||
|
||||
@@ -32,7 +32,7 @@ module.exports = async (ctx) => {
|
||||
const content = $('.f.post').first();
|
||||
content.find('h1').prevAll().remove().end().remove();
|
||||
content.find('div').nextAll().remove().end().remove();
|
||||
content.contents().each(function() {
|
||||
content.contents().each(function () {
|
||||
if (this.nodeType === 8) {
|
||||
$(this).remove();
|
||||
}
|
||||
@@ -48,10 +48,11 @@ module.exports = async (ctx) => {
|
||||
description: description,
|
||||
link: link,
|
||||
pubDate: time,
|
||||
author: author
|
||||
author: author,
|
||||
};
|
||||
return Promise.resolve(single);
|
||||
}));
|
||||
})
|
||||
);
|
||||
ctx.state.data = {
|
||||
title: `煎蛋 - 首页`,
|
||||
link: `http://jandan.net/`,
|
||||
|
||||
Reference in New Issue
Block a user