1
0
mirror of https://github.com/hanxi/xiaomusic.git synced 2026-03-19 08:49:45 +08:00

优化代码

This commit is contained in:
涵曦
2026-01-18 22:10:27 +08:00
parent 0dc17a9b5a
commit 9ecd0273ea

View File

@@ -232,6 +232,10 @@ class XiaoMusicDevice:
name = self.get_cur_music()
self.log.info(f"play. search_key:{search_key} name:{name}: exact:{exact}")
if not name:
self.log.info(f"没有歌曲播放了 name:{name} search_key:{search_key}")
return
# 本地歌曲不存在时下载
if exact:
await self._try_download_play(name, search_key)