parsing lyrics into model

pull/190/head
xufuji456 4 years ago
parent f7b39c42a3
commit 8006b12fe9
  1. 4
      app/src/main/java/com/frank/ffmpeg/tool/JsonParseTool.kt

@ -182,9 +182,7 @@ object JsonParseTool {
val lyrics = audioTag.optString("lyrics-eng") val lyrics = audioTag.optString("lyrics-eng")
if (lyrics != null && lyrics.contains("\r\n")) { if (lyrics != null && lyrics.contains("\r\n")) {
val array = lyrics.split("\r\n") val array = lyrics.split("\r\n")
for (i in array.indices) { audioBean.lyrics = array
Log.e(TAG, "lyrics=" + array[i])
}
} }
} }

Loading…
Cancel
Save