diff --git a/nonebot-plugin-resolver/__init__.py b/nonebot-plugin-resolver/__init__.py index 5229a99..36b36ed 100644 --- a/nonebot-plugin-resolver/__init__.py +++ b/nonebot-plugin-resolver/__init__.py @@ -409,7 +409,11 @@ async def xiaohongshu(bot: Bot, event: Event): download_img(item['urlDefault'], f'{os.getcwd()}/{str(index)}.jpg', session=session))) links_path = await asyncio.gather(*aio_task) elif type == 'video': - video_url = note_data['video']['media']['stream']['h264'][0]['masterUrl'] + # ⚠️ 废弃,这是一条解析有水印的视频 + # video_url = note_data['video']['video']['stream']['h264'][0]['masterUrl'] + + # 解析无水印视频video.consumer.originVideoKey} + video_url = f'http://sns-video-bd.xhscdn.com/{note_data['video']['consumer']['originVideoKey']}' path = await download_video(video_url) # await xhs.send(Message(MessageSegment.video(path))) await auto_video_send(event, path, IS_LAGRANGE) diff --git a/pyproject.toml b/pyproject.toml index 2a47a8b..9a45add 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "nonebot-plugin-resolver" -version = "1.1.13" +version = "1.1.14" description = "NoneBot2链接分享解析器插件。解析视频、图片链接/小程序插件,tiktok、bilibili、twitter等实时发送!" authors = ["zhiyu1998 "] readme = "README.md"