Skip to content

Commit

Permalink
try fix bug #22
Browse files Browse the repository at this point in the history
  • Loading branch information
kitUIN committed Nov 4, 2023
1 parent 4b6eb28 commit 37fdf25
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nonebot-plugin-ncm/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ async def receive_song(bot: Bot,
event: Union[GroupMessageEvent, PrivateMessageEvent],
song: Message = Arg(),
):
_id = await nncm.search_song(keyword=str(song), limit=1)
_id = await nncm.search_song(keyword=song.extract_plain_text(), limit=1)
message_id = await bot.send(event=event, message=Message(MessageSegment.music(type_="163", id_=_id)))
nncm.get_song(message_id=message_id["message_id"], nid=_id, bot_id=bot.self_id)
# try:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "nonebot-plugin-ncm"
version = "1.6.7"
version = "1.6.8"
description = "基于go-cqhttp与nonebot2的 网易云 无损音乐下载"
license = "Apache License 2.0"
authors = ["kitUIN <[email protected]>"]
Expand Down

0 comments on commit 37fdf25

Please sign in to comment.