From fbe1afe1c3c2f0afc7c0dbd2d5e87fc43bbcbf89 Mon Sep 17 00:00:00 2001 From: Versun Date: Sun, 28 Apr 2024 17:37:11 +0800 Subject: [PATCH] fix fetch_article content --- core/tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/tasks.py b/core/tasks.py index 7e70681..a8f272e 100644 --- a/core/tasks.py +++ b/core/tasks.py @@ -266,7 +266,7 @@ def translate_feed( if fetch_article: try: article = newspaper.article(entry.get('link')) #勿使用build,因为不支持跳转 - entry['content'] = mistune.html(article.text) + entry['content'] = [{'value': mistune.html(article.text)}] except Exception as e: logging.warning("Fetch original article error:%s", e)