diff --git a/plugins/guess_song/main.py b/plugins/guess_song/main.py index df5addb..ec13177 100644 --- a/plugins/guess_song/main.py +++ b/plugins/guess_song/main.py @@ -309,7 +309,11 @@ class GuessSongPlugin(MessagePluginInterface): api_url = f"https://hhlqilongzhu.cn/api/dg_douyinmusic.php?msg={singer_name}&type=json" else: # 如果没有指定歌手,使用热门歌手列表 - popular_singers = ["周杰伦", "林俊杰", "薛之谦", "陈奕迅", "邓紫棋", "Taylor Swift", "李荣浩"] + popular_singers = [ + "周杰伦", "林俊杰", "薛之谦", "陈奕迅", "邓紫棋", "李荣浩", "张学友", "刘德华", + "张国荣", "梅艳芳", "Beyond", "容祖儿", "谢霆锋", + "王菲", "张惠妹", "孙燕姿", "蔡依林", "五月天" + ] random_singer = random.choice(popular_singers) api_url = f"https://hhlqilongzhu.cn/api/dg_douyinmusic.php?msg={random_singer}&type=json" @@ -338,7 +342,7 @@ class GuessSongPlugin(MessagePluginInterface): # 根据随机选择的歌曲信息,再次调用API获取完整信息(包含播放链接) song_name = random_song.get('title', '') singer_name = random_song.get('singer', '') - search_query = f"{song_name} {singer_name}" + search_query = f"{singer_name}-{song_name}" # 调用原有API获取播放链接 detail_api = f"https://www.hhlqilongzhu.cn/api/joox/juhe_music.php?msg={search_query}&type=json&n=1"