Skip to content

Commit

Permalink
fix: remove raw param
Browse files Browse the repository at this point in the history
  • Loading branch information
asadahimeka committed Mar 9, 2024
1 parent 634758d commit c22432b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hibiapi/api/pixiv/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ async def novel_detail(self, *, id: int):
# 已被官方移除,调用 webview/v2/novel 作兼容处理
async def novel_text(self, *, id: int):
# return await self.request("/v1/novel/text", params={"novel_id": id})
response = await self.webview_novel(id=id, raw=False)
response = await self.webview_novel(id=id)
return {"novel_text": response["text"] or ""}

# 获取小说 HTML 后解析 JSON
Expand Down

0 comments on commit c22432b

Please sign in to comment.