Skip to content

Commit

Permalink
fix DYNAMIC_TYPE_ARTICLE
Browse files Browse the repository at this point in the history
  • Loading branch information
snowtafir committed Sep 1, 2024
1 parent c596f63 commit b16d523
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# 2.0.2
* fix DYNAMIC_TYPE_ARTICLE
* 优化Next npm包插件 Task加载

# 2.0.1
Expand Down
5 changes: 3 additions & 2 deletions models/bilibili/bilibili.query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,11 @@ export class BiliQuery {
if ((desc?.summary?.text)?.length >= 480) {
const readInfo = await this.getFullArticleContent(this.formatUrl(desc?.jump_url));
formatData.data.content = this.praseFullArticleContent(readInfo?.content);
formatData.data.pics = [];
if ((formatData.data.content) === null) {
if (!(formatData.data.content)) {
formatData.data.content = this.parseRichTextNodes(desc?.summary?.rich_text_nodes || desc?.summary?.text) || "";
formatData.data.pics = pics;
} else {
formatData.data.pics = [];
}
} else {
formatData.data.content = this.parseRichTextNodes(desc?.summary?.rich_text_nodes || desc?.summary?.text) || "";
Expand Down

0 comments on commit b16d523

Please sign in to comment.