Skip to content

Codex/fix song info display issues l5kval#315

Merged
theovilardo merged 3 commits intomasterfrom
codex/fix-song-info-display-issues-l5kval
Oct 28, 2025
Merged

Codex/fix song info display issues l5kval#315
theovilardo merged 3 commits intomasterfrom
codex/fix-song-info-display-issues-l5kval

Conversation

@theovilardo
Copy link
Copy Markdown
Owner

No description provided.

@theovilardo theovilardo merged commit 054134b into master Oct 28, 2025
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +27 to +33
val suspiciousPatterns = listOf("Ã", "â", "�", "ð", "Ÿ")
val needsFix = suspiciousPatterns.any { trimmed.contains(it) }

val reencoded = if (needsFix) {
runCatching {
String(trimmed.toByteArray(WINDOWS_1252), Charsets.UTF_8).trim()
}.getOrNull()
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Avoid re-encoding legitimate ð/Ÿ metadata

The new normalizeMetadataText marks any string containing "ð" or "Ÿ" as corrupt and forces a Windows‑1252→UTF‑8 conversion. These letters are common in valid names (e.g. Icelandic or French metadata) and will be mangled because their UTF‑16 representation is reinterpreted as Windows‑1252 bytes and decoded as UTF‑8, yielding replacement characters. Previously the code left such text untouched; after this change, correct titles or artists are corrupted whenever they legitimately contain these characters. Consider detecting actual mis‑decoding patterns (like "Ã�", "ß", etc.) instead of individual letters, or gating the conversion behind stronger heuristics.

Useful? React with 👍 / 👎.

@lostf1sh lostf1sh deleted the codex/fix-song-info-display-issues-l5kval branch January 16, 2026 20:39
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