From 0adb4f5ae52db730e1074984c71addcf2b125ea7 Mon Sep 17 00:00:00 2001 From: lyswhut Date: Wed, 31 May 2023 09:07:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=94=B9=E5=8F=98=E6=92=AD?= =?UTF-8?q?=E6=94=BE=E9=80=9F=E7=8E=87=E6=97=B6=E4=BC=9A=E5=AF=BC=E8=87=B4?= =?UTF-8?q?=E6=AD=8C=E8=AF=8D=E6=8A=A5=E9=94=99=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- publish/changeLog.md | 1 + src/common/utils/lyric-font-player/font-player.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/publish/changeLog.md b/publish/changeLog.md index 64203edf..677f3412 100644 --- a/publish/changeLog.md +++ b/publish/changeLog.md @@ -8,6 +8,7 @@ - 修复因插入数字类型的ID导致其意外在末尾追加 .0 导致列表数据异常的问题,同时也可能导致同步数据丢失的问题(要完全修复这个问题还需要同时将移动端、同步服务更新到最新版本) - 修复下载时出现302错误的问题 - 修复播放某些在线音频会没有声音的问题 +- 修复改变播放速率时会导致歌词报错的问题 ### 其他 diff --git a/src/common/utils/lyric-font-player/font-player.js b/src/common/utils/lyric-font-player/font-player.js index 9f3efa44..f958fb67 100644 --- a/src/common/utils/lyric-font-player/font-player.js +++ b/src/common/utils/lyric-font-player/font-player.js @@ -133,8 +133,8 @@ module.exports = class FontPlayer { // let lineText = '' let lrcShadowContent for (const font of fonts) { + if (!timeRxp.test(font)) return this._handleLineParse() text = font.replace(timeRxp, '') - if (RegExp.$2 == '') return this._handleLineParse() const time = parseInt(RegExp.$2) const dom = document.createElement('span')