mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-02 01:58:11 +08:00
style: auto format
This commit is contained in:
@@ -3,7 +3,6 @@ const cheerio = require('cheerio');
|
||||
const { parseDate } = require('@/utils/parse-date');
|
||||
const timezone = require('@/utils/timezone');
|
||||
|
||||
|
||||
module.exports = async (ctx) => {
|
||||
const link = `https://www.cnblogs.com${ctx.path}`;
|
||||
const response = await got(link);
|
||||
@@ -17,14 +16,7 @@ module.exports = async (ctx) => {
|
||||
return {
|
||||
title: item.find('.post-item-title').text(),
|
||||
link: item.find('.post-item-title').attr('href'),
|
||||
pubDate: timezone(
|
||||
parseDate(
|
||||
item.find('.post-item-foot .post-meta-item span').text() ||
|
||||
item.find('.editorpick-item-meta').text(),
|
||||
['YYYY-MM-DD HH:mm', 'YYYY-MM-DD']
|
||||
),
|
||||
+8
|
||||
),
|
||||
pubDate: timezone(parseDate(item.find('.post-item-foot .post-meta-item span').text() || item.find('.editorpick-item-meta').text(), ['YYYY-MM-DD HH:mm', 'YYYY-MM-DD']), +8),
|
||||
description: item.find('.post-item-summary').text(),
|
||||
author: item.find('.post-item-author span').text(),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user