fix: restore category news collection

This commit is contained in:
hajimi
2026-08-04 00:58:22 +08:00
parent bdab4f5019
commit edce4baa09
10 changed files with 100 additions and 30 deletions
+3 -1
View File
@@ -22,6 +22,8 @@ def has_publishable_article_content(content: str) -> bool:
return len(plain) >= 200
def resolve_crawled_article_is_show(content: str) -> int:
def resolve_crawled_article_is_show(content: str, allow_summary: bool = False) -> int:
"""根据正文内容决定采集文章的默认状态:1=发布,0=稿子。"""
if allow_summary and (content or "").strip():
return 1
return 1 if has_publishable_article_content(content) else 0