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