mirror of
https://github.com/xfgryujk/blivechat.git
synced 2025-03-13 11:20:42 +08:00
纯表情消息不需要翻译
This commit is contained in:
parent
5bdf2e41df
commit
7c2c48273c
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user