mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-03 18:48:12 +08:00
fix: 重新支持infoq获取文章正文 (#12039)
* 重新支持获取文章正文 * Update lib/v2/infoq/utils.js * Update lib/v2/infoq/utils.js * style: auto format --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
@@ -21,10 +21,11 @@ const ProcessFeed = async (list, cache) => {
|
||||
const data = resp.data.data;
|
||||
const author = data.author ? data.author.map((p) => p.nickname).join(',') : data.no_author;
|
||||
const category = e.topic.map((t) => t.name).concat(e.label.map((l) => l.name));
|
||||
const content = data.content_url ? (await got(data.content_url)).body : data.content;
|
||||
|
||||
return {
|
||||
title: data.article_title,
|
||||
description: parseContent(data.content),
|
||||
description: parseContent(content),
|
||||
pubDate: parseDate(e.publish_time, 'x'),
|
||||
category,
|
||||
author,
|
||||
|
||||
Reference in New Issue
Block a user