Skip to content

Parse lyrics lines with timestamps 3+ digit minutes#530

Merged
nift4 merged 2 commits into
FoedusProgramme:betafrom
mikooomich:lyrics-greater-than-99-minutes
Jun 5, 2025
Merged

Parse lyrics lines with timestamps 3+ digit minutes#530
nift4 merged 2 commits into
FoedusProgramme:betafrom
mikooomich:lyrics-greater-than-99-minutes

Conversation

@mikooomich

Copy link
Copy Markdown
Collaborator
[99:34:73] Lyric test one two three
[101:34:73] Four five six

Would previous read as:

Lyric test one two three
[101:34:73] Four five six

With this change, the timestamp for lyrics with 3+ digits for minutes should be read correctly.

LyricLine(start = 186760uL, text = """繋げよう""", words = null, speaker = null, end = 189799uL, isTranslated = false),
LyricLine(start = 186760uL, text = """Let's connect""", words = null, speaker = null, end = 189799uL, isTranslated = true),
LyricLine(start = 189800uL, text = """""", words = null, speaker = null, end = 9223372036854775807uL, isTranslated = false),
LyricLine(start = 6186760uL, text = """Let's connect""", words = null, speaker = null, end = 189799uL, isTranslated = true),

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is end still 189799uL

@mikooomich mikooomich force-pushed the lyrics-greater-than-99-minutes branch from 038e7dd to ae7239b Compare June 5, 2025 19:02
@mikooomich

Copy link
Copy Markdown
Collaborator Author

My bad, tests should be good now. I moved the lrc tests to LrcUtilsTests file, and just replaced the final chorus for ttml with "timestamp +100 minutes". Lmk if anything else is needed

@nift4 nift4 merged commit 99abfb2 into FoedusProgramme:beta Jun 5, 2025
1 check passed
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.

2 participants