修复某些歌曲的桌面歌词翻译或罗马音没有显示的问题

This commit is contained in:
lyswhut 2022-12-10 13:10:58 +08:00
parent 9f8787e5a8
commit 43906f9506
2 changed files with 3 additions and 15 deletions

View File

@ -124,7 +124,7 @@ public class LyricPlayer {
Matcher timeMatchResult = timePattern.matcher(timeField);
while (timeMatchResult.find()) {
String timeStr = timeMatchResult.group();
timeStr = timeStr.replace("(\\.\\d\\d)0$", "$1");
timeStr = timeStr.replaceAll("(?:\\.0+|0+)$", "");
HashMap targetLine = (HashMap) linesMap.get(timeStr);
if (targetLine != null) ((ArrayList<String>) targetLine.get("extendedLyrics")).add(text);
}
@ -150,7 +150,7 @@ public class LyricPlayer {
Matcher timeMatchResult = timePattern.matcher(timeField);
while (timeMatchResult.find()) {
String timeStr = timeMatchResult.group();
timeStr = timeStr.replace("(\\.\\d\\d)0$", "$1");
timeStr = timeStr.replaceAll("(?:\\.0+|0+)$", "");
if (linesMap.containsKey(timeStr)) {
((ArrayList<String>) ((HashMap) linesMap.get(timeStr)).get("extendedLyrics")).add(text);
continue;

View File

@ -1,15 +1,3 @@
### 新增
- 支持导入PC端v2版本的列表数据
- 添加kg源罗马音歌词的支持
- 支持打开波点音乐歌单(需在酷我源打开)
### 修复
- 支持单行多时间标签歌词解析,修复某些歌词会出现时间标签的问题
- 修复某些类型的kg歌单无法导入的问题
- 修复异常歌单、歌曲数据导致的崩溃问题(#157
### 其他
- 升级react-native到 v0.68.5
- 修复某些歌曲的桌面歌词翻译或罗马音没有显示的问题