mirror of
https://github.com/xfgryujk/blivechat.git
synced 2025-04-03 16:10:35 +08:00
升级blivedm
This commit is contained in:
parent
5d98bb5d14
commit
dbf4de5fa5
2
blivedm
2
blivedm
@ -1 +1 @@
|
|||||||
Subproject commit 4da27950c89d4c0bab70ba983ba25bae9f91c19c
|
Subproject commit b2c26b5f16ee4fd0f4a1ded8c94f9c37e1e2ff6a
|
@ -390,12 +390,8 @@ class LiveMsgHandler(blivedm.BaseHandler):
|
|||||||
asyncio.create_task(self.__on_danmaku(client, message))
|
asyncio.create_task(self.__on_danmaku(client, message))
|
||||||
|
|
||||||
async def __on_danmaku(self, client: WebLiveClient, message: dm_web_models.DanmakuMessage):
|
async def __on_danmaku(self, client: WebLiveClient, message: dm_web_models.DanmakuMessage):
|
||||||
avatar_url = message.face
|
# 先异步调用再获取房间,因为返回时房间可能已经不存在了
|
||||||
if avatar_url != '':
|
avatar_url = await services.avatar.get_avatar_url(message.uid, message.uname)
|
||||||
services.avatar.update_avatar_cache_if_expired(message.uid, avatar_url)
|
|
||||||
else:
|
|
||||||
# 先异步调用再获取房间,因为返回时房间可能已经不存在了
|
|
||||||
avatar_url = await services.avatar.get_avatar_url(message.uid, message.uname)
|
|
||||||
|
|
||||||
room = client_room_manager.get_room(client.room_key)
|
room = client_room_manager.get_room(client.room_key)
|
||||||
if room is None:
|
if room is None:
|
||||||
|
Loading…
Reference in New Issue
Block a user