一些小优化

pull/41/head
John Smith 4 years ago
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…
Cancel
Save