fix: #91 修复下载歌曲报错

This commit is contained in:
涵曦 2024-06-30 01:07:25 +00:00
parent 7c45d93fea
commit edafd79140

View File

@ -703,6 +703,7 @@ class XiaoMusic:
self.log.info(f"根据【{name}】找到歌曲【{real_name}")
return real_name
self.log.info(f"没找到歌曲【{name}")
return name
# 播放本地歌曲
async def playlocal(self, **kwargs):
@ -759,7 +760,7 @@ class XiaoMusic:
await self.do_tts(f"本地不存在歌曲{name}")
return
await self.download(search_key, name)
self.log.info("正在下载中 %s", search_key + ":" + name)
self.log.info(f"正在下载中 {search_key} {name}")
await self.download_proc.wait()
# 把文件插入到播放列表里
self.add_download_music(name)