mirror of
https://github.com/hanxi/xiaomusic.git
synced 2025-12-17 16:48:14 +08:00
fix: error when play next
This commit is contained in:
@@ -355,7 +355,10 @@ class XiaoMusic:
|
|||||||
|
|
||||||
async def _do_next():
|
async def _do_next():
|
||||||
await asyncio.sleep(self._timeout)
|
await asyncio.sleep(self._timeout)
|
||||||
await self.play_next()
|
try:
|
||||||
|
await self.play_next()
|
||||||
|
except Exception as e:
|
||||||
|
self.log.warning(f"执行出错 {str(e)}\n{traceback.format_exc()}")
|
||||||
|
|
||||||
self._next_timer = asyncio.ensure_future(_do_next())
|
self._next_timer = asyncio.ensure_future(_do_next())
|
||||||
self.log.info(f"{sec}秒后将会播放下一首")
|
self.log.info(f"{sec}秒后将会播放下一首")
|
||||||
|
|||||||
Reference in New Issue
Block a user