Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed hundreds formatted as milliseconds #4

Merged
merged 1 commit into from
Sep 28, 2023

Conversation

hyungtaecf
Copy link
Contributor

  • The lines milliseconds: int.parse(i.substring(7, 9)) considered the hundred as milliseconds. This problem could be easily detected when parsing LRC objects containing lyrics with set milliseconds, formatting them, and then comparing them to the output result. The hundreds are divided by 10 each time. Even the hundreds part usually aren't a big deal, this is not good for consistency. Now they are fixed.

  • Refactored a few lines to make it less verbose.

- The lines "milliseconds: int.parse(i.substring(7, 9))" treated the hundred as milliseconds. Now they are fixed.

- Refactored a few lines to make it less verbose.
@Yivan000
Copy link
Owner

Thank you for this PR!

@Yivan000 Yivan000 merged commit 22fd04d into Yivan000:master Sep 28, 2023
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.

None yet

2 participants