Skip to content

Commit

Permalink
Fix word by word lyrics having spaces in-between words
Browse files Browse the repository at this point in the history
  • Loading branch information
Lambada10 committed Aug 12, 2024
1 parent 8bb37b1 commit ddf4f8d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,10 @@ class AppleAPI {
syncedLyrics.append("[${line.timestamp.toLrcTimestamp()}]")

for (syllable in line.text) {
syncedLyrics.append("<${syllable.timestamp!!.toLrcTimestamp()}>${syllable.text} ")
syncedLyrics.append("<${syllable.timestamp!!.toLrcTimestamp()}>${syllable.text}")
if (!syllable.part) {
syncedLyrics.append(" ")
}
}

syncedLyrics.append("<${line.endtime.toLrcTimestamp()}>\n")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,6 @@ data class AppleLyrics(
@Serializable
data class AppleLyricsLineDetails(
val text: String,
val part: Boolean,
val timestamp: Int?
)

0 comments on commit ddf4f8d

Please sign in to comment.