Skip to content

Conversation

@OzGav
Copy link
Contributor

@OzGav OzGav commented Nov 15, 2025

When a .lrc (lyrics) file associated with an MP3 has non-UTF8 encoding, the previous code would fail during file reading and potentially block playback. This fix:

  1. Explicitly specifies UTF-8 encoding when opening .lrc files
  2. Wraps .lrc file reading in try-except block
  3. Logs a warning if the lyrics file cannot be read
  4. Allows playback to continue even if lyrics parsing fails

This ensures that encoding issues in lyrics files are logged but do not prevent the audio file from playing.

When a .lrc (lyrics) file associated with an MP3 has non-UTF8 encoding,
the previous code would fail during file reading and potentially block
playback. This fix:

1. Explicitly specifies UTF-8 encoding when opening .lrc files
2. Wraps .lrc file reading in try-except block
3. Logs a warning if the lyrics file cannot be read
4. Allows playback to continue even if lyrics parsing fails

This ensures that encoding issues in lyrics files are logged but do not
prevent the audio file from playing.
@OzGav OzGav added the bugfix label Nov 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants