Skip to content

feat: parse multi-timestamp lyrics & other improvements#5

Open
MSOB7YY wants to merge 27 commits intoYivan000:masterfrom
MSOB7YY:master
Open

feat: parse multi-timestamp lyrics & other improvements#5
MSOB7YY wants to merge 27 commits intoYivan000:masterfrom
MSOB7YY:master

Conversation

@MSOB7YY
Copy link

@MSOB7YY MSOB7YY commented Aug 15, 2024

This PR contains the following:

  • core: remove ^..*$ pattern from Lrc.isValid()

    • this was causing the vm to hang while checking some lyrics
  • perf: use StringBuffer for formatting lrc (in Lrc.format())

    • instead of recreating new String on each concat
  • feat: parse multi-timestamp lyrics

    • lyrics lines like [00:29.02][00:44.02]Line 3 lyrics will get parsed properly, and sorted if needed
  • some refactor & adding test

thanks for this awesome package btw, i don't mind if this pr didn't get merged, just thought it might be helpful.

pls note i have only tested with normal synced lyrics. the pr might need more tests with other types like extended & enhanced

MSOB7YY added 27 commits August 13, 2024 23:35
this fixes the heavy matching that could be caused, preventing vm from freezing
and improve by ensuring more characters left after the separator
disabled by default, doesn't romanize all kanji
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant