From 8459494c615ed6ee28857ab0a0d029f0c9b7b2d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B6=B5=E6=9B=A6?= Date: Mon, 16 Sep 2024 21:43:49 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=8D=95=E6=9B=B2?= =?UTF-8?q?=E5=BE=AA=E7=8E=AF=E7=9A=84=E6=83=85=E5=86=B5=E4=B8=8B=E6=AD=8C?= =?UTF-8?q?=E6=9B=B2=E4=B8=8D=E5=9C=A8=E5=BD=93=E5=89=8D=E6=92=AD=E6=94=BE?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E6=97=B6=E5=A4=B1=E6=95=88=E7=9A=84=E6=83=85?= =?UTF-8?q?=E5=86=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- xiaomusic/xiaomusic.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xiaomusic/xiaomusic.py b/xiaomusic/xiaomusic.py index b1321c7..32af5ba 100644 --- a/xiaomusic/xiaomusic.py +++ b/xiaomusic/xiaomusic.py @@ -1005,7 +1005,9 @@ class XiaoMusicDevice: self.device.play_type == PLAY_TYPE_ALL or self.device.play_type == PLAY_TYPE_RND or name == "" - or (name not in self._play_list) + or ( + (name not in self._play_list) and self.device.play_type != PLAY_TYPE_ONE + ) ): name = self.get_next_music() self.log.info(f"_play_next. name:{name}, cur_music:{self.get_cur_music()}")