mirror of
https://github.com/xfgryujk/blivechat.git
synced 2025-01-13 13:50:10 +08:00
一些小优化
This commit is contained in:
parent
d3cd5a3120
commit
ddc13a6327
@ -11,8 +11,8 @@ export const DEFAULT_CONFIG = {
|
||||
|
||||
blockGiftDanmaku: true,
|
||||
blockLevel: 0,
|
||||
blockNewbie: true,
|
||||
blockNotMobileVerified: true,
|
||||
blockNewbie: false,
|
||||
blockNotMobileVerified: false,
|
||||
blockKeywords: '',
|
||||
blockUsers: '',
|
||||
blockMedalLevel: 0,
|
||||
|
@ -137,7 +137,7 @@ export function getGiftShowContent (message, showGiftName) {
|
||||
}
|
||||
|
||||
export function getShowAuthorName (message) {
|
||||
if (message.authorNamePronunciation) {
|
||||
if (message.authorNamePronunciation && message.authorNamePronunciation !== message.authorName) {
|
||||
return `${message.authorName}(${message.authorNamePronunciation})`
|
||||
}
|
||||
return message.authorName
|
||||
|
@ -379,7 +379,7 @@ export default {
|
||||
}
|
||||
}
|
||||
|
||||
this.maybeResizeScrollContainer(),
|
||||
this.maybeResizeScrollContainer()
|
||||
this.flushMessagesBuffer()
|
||||
this.$nextTick(this.maybeScrollToBottom)
|
||||
},
|
||||
|
@ -54,7 +54,7 @@ def need_translate(text):
|
||||
if any(0x3040 <= ord(c) <= 0x30FF for c in text):
|
||||
return False
|
||||
# 弹幕同传
|
||||
if text.startswith('【'):
|
||||
if '【' in text:
|
||||
return False
|
||||
# 中日双语
|
||||
if text in NO_TRANSLATE_TEXTS:
|
||||
|
Loading…
Reference in New Issue
Block a user