From 9ecd0273ea9d77d346d6cccb2abe302964c039e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B6=B5=E6=9B=A6?= Date: Sun, 18 Jan 2026 22:10:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- xiaomusic/device_player.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xiaomusic/device_player.py b/xiaomusic/device_player.py index 12db037..a571c3f 100644 --- a/xiaomusic/device_player.py +++ b/xiaomusic/device_player.py @@ -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)