fix: restore category news collection
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user