Skip to content

Commit

Permalink
fix fetch_article content
Browse files Browse the repository at this point in the history
  • Loading branch information
versun committed Apr 28, 2024
1 parent 742a229 commit fbe1afe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit fbe1afe

Please sign in to comment.