mirror of
https://github.com/ikun0014/lx-music-mobile.git
synced 2025-05-23 22:37:41 +08:00
修复某些歌曲的桌面歌词翻译或罗马音没有显示的问题
This commit is contained in:
parent
9f8787e5a8
commit
43906f9506
@ -124,7 +124,7 @@ public class LyricPlayer {
|
|||||||
Matcher timeMatchResult = timePattern.matcher(timeField);
|
Matcher timeMatchResult = timePattern.matcher(timeField);
|
||||||
while (timeMatchResult.find()) {
|
while (timeMatchResult.find()) {
|
||||||
String timeStr = timeMatchResult.group();
|
String timeStr = timeMatchResult.group();
|
||||||
timeStr = timeStr.replace("(\\.\\d\\d)0$", "$1");
|
timeStr = timeStr.replaceAll("(?:\\.0+|0+)$", "");
|
||||||
HashMap targetLine = (HashMap) linesMap.get(timeStr);
|
HashMap targetLine = (HashMap) linesMap.get(timeStr);
|
||||||
if (targetLine != null) ((ArrayList<String>) targetLine.get("extendedLyrics")).add(text);
|
if (targetLine != null) ((ArrayList<String>) targetLine.get("extendedLyrics")).add(text);
|
||||||
}
|
}
|
||||||
@ -150,7 +150,7 @@ public class LyricPlayer {
|
|||||||
Matcher timeMatchResult = timePattern.matcher(timeField);
|
Matcher timeMatchResult = timePattern.matcher(timeField);
|
||||||
while (timeMatchResult.find()) {
|
while (timeMatchResult.find()) {
|
||||||
String timeStr = timeMatchResult.group();
|
String timeStr = timeMatchResult.group();
|
||||||
timeStr = timeStr.replace("(\\.\\d\\d)0$", "$1");
|
timeStr = timeStr.replaceAll("(?:\\.0+|0+)$", "");
|
||||||
if (linesMap.containsKey(timeStr)) {
|
if (linesMap.containsKey(timeStr)) {
|
||||||
((ArrayList<String>) ((HashMap) linesMap.get(timeStr)).get("extendedLyrics")).add(text);
|
((ArrayList<String>) ((HashMap) linesMap.get(timeStr)).get("extendedLyrics")).add(text);
|
||||||
continue;
|
continue;
|
||||||
|
@ -1,15 +1,3 @@
|
|||||||
### 新增
|
|
||||||
|
|
||||||
- 支持导入PC端v2版本的列表数据
|
|
||||||
- 添加kg源罗马音歌词的支持
|
|
||||||
- 支持打开波点音乐歌单(需在酷我源打开)
|
|
||||||
|
|
||||||
### 修复
|
### 修复
|
||||||
|
|
||||||
- 支持单行多时间标签歌词解析,修复某些歌词会出现时间标签的问题
|
- 修复某些歌曲的桌面歌词翻译或罗马音没有显示的问题
|
||||||
- 修复某些类型的kg歌单无法导入的问题
|
|
||||||
- 修复异常歌单、歌曲数据导致的崩溃问题(#157)
|
|
||||||
|
|
||||||
### 其他
|
|
||||||
|
|
||||||
- 升级react-native到 v0.68.5
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user