mirror of
https://github.com/xfgryujk/blivechat.git
synced 2026-08-19 09:43:28 +08:00
纯表情消息不需要翻译
This commit is contained in:
@@ -332,7 +332,7 @@ class LiveMsgHandler(blivedm.BaseHandler):
|
||||
|
||||
text_emoticons = self._parse_text_emoticons(message)
|
||||
|
||||
need_translate = self._need_translate(message.msg, room)
|
||||
need_translate = content_type != api.chat.ContentType.EMOTICON and self._need_translate(message.msg, room)
|
||||
if need_translate:
|
||||
translation = services.translate.get_translation_from_cache(message.msg)
|
||||
if translation is None:
|
||||
|
||||
Reference in New Issue
Block a user