Skip to content

Commit f2cf864

Browse files
committed
fix: zhihu article url error #564
1 parent b43d6b7 commit f2cf864

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

media_platform/zhihu/help.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ def _extract_article_content(self, article: Dict) -> ZhihuContent:
130130
res.content_id = article.get("id")
131131
res.content_type = article.get("type")
132132
res.content_text = extract_text_from_html(article.get("content"))
133-
res.content_url = f"{zhihu_constant.ZHIHU_URL}/p/{res.content_id}"
133+
res.content_url = f"{zhihu_constant.ZHIHU_ZHUANLAN_URL}/p/{res.content_id}"
134134
res.title = extract_text_from_html(article.get("title"))
135135
res.desc = extract_text_from_html(article.get("excerpt"))
136136
res.created_time = article.get("created_time", 0) or article.get("created", 0)

0 commit comments

Comments
 (0)