From 80299898b7fae9a648ecd3f33b230735d5eae446 Mon Sep 17 00:00:00 2001 From: Cam <yulinfeng000@gmail.com> Date: Tue, 23 Aug 2022 11:57:14 +0800 Subject: [PATCH] update README and fix fastapi.py's bug --- README.md | 2 ++ example/with_fastapi.py | 1 + 2 files changed, 3 insertions(+) diff --git a/README.md b/README.md index 8067e5b..69fb55d 100644 --- a/README.md +++ b/README.md @@ -27,6 +27,7 @@ ```python from blive import BLiver, Events, BLiverCtx + from blive.msg import DanMuMsg app = BLiver(123) @@ -148,6 +149,7 @@ async def rm_bliver(roomid:int): room = BLIVER_POOL.get(roomid,None) if room: room.cancel() + BLIVER_POOL.pop(roomid) return {"msg":"移除直播间弹幕监听成功"} diff --git a/example/with_fastapi.py b/example/with_fastapi.py index 313db15..871b487 100644 --- a/example/with_fastapi.py +++ b/example/with_fastapi.py @@ -34,6 +34,7 @@ async def rm_bliver(roomid: int): room = BLIVER_POOL.get(roomid, None) if room: room.cancel() + BLIVER_POOL.pop(roomid) return {"msg": "移除直播间弹幕监听成功"}