升级blivedm

This commit is contained in:
John Smith 2023-11-25 22:54:53 +08:00
parent 5d98bb5d14
commit dbf4de5fa5
2 changed files with 3 additions and 7 deletions

@ -1 +1 @@
Subproject commit 4da27950c89d4c0bab70ba983ba25bae9f91c19c
Subproject commit b2c26b5f16ee4fd0f4a1ded8c94f9c37e1e2ff6a

View File

@ -390,12 +390,8 @@ class LiveMsgHandler(blivedm.BaseHandler):
asyncio.create_task(self.__on_danmaku(client, message))
async def __on_danmaku(self, client: WebLiveClient, message: dm_web_models.DanmakuMessage):
avatar_url = message.face
if avatar_url != '':
services.avatar.update_avatar_cache_if_expired(message.uid, avatar_url)
else:
# 先异步调用再获取房间,因为返回时房间可能已经不存在了
avatar_url = await services.avatar.get_avatar_url(message.uid, message.uname)
# 先异步调用再获取房间,因为返回时房间可能已经不存在了
avatar_url = await services.avatar.get_avatar_url(message.uid, message.uname)
room = client_room_manager.get_room(client.room_key)
if room is None: