🔀 merge main

This commit is contained in:
2024-10-31 00:50:20 +08:00
6 changed files with 16 additions and 22999 deletions
+2 -2
View File
@@ -176,7 +176,7 @@ class Weibo(NewMessage):
try:
client = await self.ctx.get_client()
weibo_info = await client.get(
"https://m.weibo.cn/statuses/show",
"https://m.weibo.cn/statuses/extend",
params={"id": weibo_id},
headers=_HEADER,
)
@@ -190,7 +190,7 @@ class Weibo(NewMessage):
async def _parse_weibo(self, info: dict) -> Post:
if info["isLongText"] or info["pic_num"] > 9:
info["text"] = (await self._get_long_weibo(info["mid"]))["text"]
info["text"] = (await self._get_long_weibo(info["mid"]))["longTextContent"]
parsed_text = self._get_text(info["text"])
raw_pics_list = info.get("pics", [])
pic_urls = [img["large"]["url"] for img in raw_pics_list]