mirror of
https://github.com/yulinfeng000/blive.git
synced 2026-08-22 10:23:26 +08:00
update README and fix fastapi.py's bug
This commit is contained in:
@@ -27,6 +27,7 @@
|
|||||||
|
|
||||||
```python
|
```python
|
||||||
from blive import BLiver, Events, BLiverCtx
|
from blive import BLiver, Events, BLiverCtx
|
||||||
|
from blive.msg import DanMuMsg
|
||||||
|
|
||||||
app = BLiver(123)
|
app = BLiver(123)
|
||||||
|
|
||||||
@@ -148,6 +149,7 @@ async def rm_bliver(roomid:int):
|
|||||||
room = BLIVER_POOL.get(roomid,None)
|
room = BLIVER_POOL.get(roomid,None)
|
||||||
if room:
|
if room:
|
||||||
room.cancel()
|
room.cancel()
|
||||||
|
BLIVER_POOL.pop(roomid)
|
||||||
return {"msg":"移除直播间弹幕监听成功"}
|
return {"msg":"移除直播间弹幕监听成功"}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -34,6 +34,7 @@ async def rm_bliver(roomid: int):
|
|||||||
room = BLIVER_POOL.get(roomid, None)
|
room = BLIVER_POOL.get(roomid, None)
|
||||||
if room:
|
if room:
|
||||||
room.cancel()
|
room.cancel()
|
||||||
|
BLIVER_POOL.pop(roomid)
|
||||||
return {"msg": "移除直播间弹幕监听成功"}
|
return {"msg": "移除直播间弹幕监听成功"}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user