nautilis / plugin_music

chatgpt-on-wechat 音乐插件
32 stars 10 forks source link

我的项目报错了,能否指导解决 #3

Open leungyiuhoi opened 1 year ago

leungyiuhoi commented 1 year ago

[INFO][2023-09-23 00:35:04][netease_music.py:42] - content => music 点歌:可惜我是水瓶座-杨千嬅 可惜我是水瓶座 杨千嬅 200 [ERROR][2023-09-23 00:35:04][chat_channel.py:282] - Worker return exception: string indices must be integers Traceback (most recent call last): File "/usr/lib/python3.8/concurrent/futures/thread.py", line 57, in run result = self.fn(*self.args, *self.kwargs) File "/home/ubuntu/chatgpt-on-wechat/channel/chat_channel.py", line 155, in _handle reply = self._generate_reply(context) File "/home/ubuntu/chatgpt-on-wechat/channel/chat_channel.py", line 165, in _generate_reply e_context = PluginManager().emit_event( File "/home/ubuntu/chatgpt-on-wechat/plugins/plugin_manager.py", line 189, in emit_event instance.handlers[e_context.event](e_context, args, **kwargs) File "/home/ubuntu/chatgpt-on-wechat/plugins/plugin_music/netease_music.py", line 52, in on_handle_context url, name, ar = self.search_song(msg) File "/home/ubuntu/chatgpt-on-wechat/plugins/plugin_music/netease_music.py", line 102, in search_song songs = result["songs"] TypeError: string indices must be integers