mirror of
https://github.com/acgnhiki/blrec.git
synced 2024-12-27 00:50:14 +08:00
refactor: update room info before handling status changes
This commit is contained in:
parent
34d9aa63ef
commit
60a8f23a14
@ -122,8 +122,10 @@ class LiveMonitor(EventEmitter[LiveEventListener], DanmakuListener, SwitchableMi
|
||||
danmu_cmd = danmu['cmd']
|
||||
|
||||
if danmu_cmd == DanmakuCommand.LIVE.value:
|
||||
await self._live.update_room_info()
|
||||
await self._handle_status_change(LiveStatus.LIVE)
|
||||
elif danmu_cmd == DanmakuCommand.PREPARING.value:
|
||||
await self._live.update_room_info()
|
||||
if danmu.get('round', None) == 1:
|
||||
await self._handle_status_change(LiveStatus.ROUND)
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user