修复停止播放导致退出问题 see #80
This commit is contained in:
parent
3cdc836e9e
commit
7a154fd847
@ -37,13 +37,11 @@ DEFAULT_KEY_MATCH_ORDER = [
|
|||||||
"get_volume#",
|
"get_volume#",
|
||||||
"分钟后关机",
|
"分钟后关机",
|
||||||
"播放歌曲",
|
"播放歌曲",
|
||||||
"放歌曲",
|
|
||||||
"下一首",
|
"下一首",
|
||||||
"单曲循环",
|
"单曲循环",
|
||||||
"全部循环",
|
"全部循环",
|
||||||
"随机播放",
|
"随机播放",
|
||||||
"关机",
|
"关机",
|
||||||
"停止播放",
|
|
||||||
"刷新列表",
|
"刷新列表",
|
||||||
"播放列表",
|
"播放列表",
|
||||||
]
|
]
|
||||||
|
@ -543,6 +543,7 @@ class XiaoMusic:
|
|||||||
]
|
]
|
||||||
joined_keywords = "/".join(filtered_keywords)
|
joined_keywords = "/".join(filtered_keywords)
|
||||||
self.log.info(f"Running xiaomusic now, 用`{joined_keywords}`开头来控制")
|
self.log.info(f"Running xiaomusic now, 用`{joined_keywords}`开头来控制")
|
||||||
|
self.log.info(self.config.key_word_dict)
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
self.polling_event.set()
|
self.polling_event.set()
|
||||||
@ -594,7 +595,7 @@ class XiaoMusic:
|
|||||||
argafter,
|
argafter,
|
||||||
)
|
)
|
||||||
oparg = argafter
|
oparg = argafter
|
||||||
opvalue = self.config.key_word_dict[opkey]
|
opvalue = self.config.key_word_dict.get(opkey)
|
||||||
if not ctrl_panel and not self._playing:
|
if not ctrl_panel and not self._playing:
|
||||||
if self.active_cmd and opvalue not in self.active_cmd:
|
if self.active_cmd and opvalue not in self.active_cmd:
|
||||||
self.log.debug(f"不在激活命令中 {opvalue}")
|
self.log.debug(f"不在激活命令中 {opvalue}")
|
||||||
|
Loading…
Reference in New Issue
Block a user