Parse repeating LRC lines #69
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feature/lrc-repeating-lines"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
In LRC lyrics, allow repeating lines (with multiple timestamps):
see https://en.wikipedia.org/wiki/LRC_(file_format)#File_format
Thank you for the great app!
@ -28,9 +28,11 @@ data class Lyrics(val lines: List<Pair<Duration, String>>) {}}\dis not always equivalent to[0-9]in all contexts. While they're probably equal in Java 8 and receiving[٠٠:٠٠.٠٠]as an input would never happen in real world, it's still a good habit to not use suspicious things.@ -28,9 +28,11 @@ data class Lyrics(val lines: List<Pair<Duration, String>>) {}}huh, i was not aware of that, definitely good to know 😅
@ -52,3 +47,1 @@val text = it.groups["text"]!!.value.trim()Pair(timestamp, text)}.flatMap { line ->Google is famous for arbitrarily deprecating things. Don't use their API whenever possible. Also I think this is an internal API they forgot to mark private - the docs mentioned "Do not use for collections that come from public APIs".
@ -52,3 +47,1 @@val text = it.groups["text"]!!.value.trim()Pair(timestamp, text)}.flatMap { line ->ah, fair enough. i kind of misread that as "only use when you know that random access is fast" (and
.lines()produces an arraylist). but i have to admit that regardless this would have been unnecessary and error prone optimization