点歌功能调整API接口
This commit is contained in:
@@ -109,7 +109,7 @@ class MusicPlugin(MessagePluginInterface):
|
||||
try:
|
||||
# 搜索歌曲
|
||||
song_info = self._search_song(user_song_name)
|
||||
if not song_info or not song_info.get("play_url"):
|
||||
if not song_info or not song_info.get("url"):
|
||||
await bot.send_text_message((roomid if roomid else sender), f"❌未找到歌曲:{user_song_name}", sender)
|
||||
return False, "未找到歌曲"
|
||||
|
||||
@@ -136,7 +136,7 @@ class MusicPlugin(MessagePluginInterface):
|
||||
return {
|
||||
"song_name": json_data.get('title', ''),
|
||||
"singer_name": json_data.get('singer', ''),
|
||||
"play_url": json_data.get('music_url', ''),
|
||||
"play_url": json_data.get('url', ''),
|
||||
"singer_pic": json_data.get('cover', ''),
|
||||
"data_url": json_data.get('link', '')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user