Skip to content

Arlecchino745/lrc-fix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lrc-fix

Fix encoding issues in .lrc (lyrics) files — auto-detect the original encoding and convert to UTF-8.

What it does

  • Scans a folder recursively for *.lrc files
  • Detects the original encoding with chardet
  • Fixes HTML entities (çç …)
  • Converts and overwrites files in UTF-8
  • Creates a raw backup before touching anything (raw-original.lrc)

Usage

python lrc-fix.py <folder> [encoding]
Argument Default Description
folder . Directory to scan for .lrc files
encoding utf-8 Target encoding

Example:

# Convert all .lrc files in D:\Music and subfolders to UTF-8
python lrc-fix.py D:\Music utf-8

Download (Windows EXE)

Pre-built executables are available on the Releases page.

Build from source

pip install -r requirements.txt
pyinstaller --onefile --name lrc-fix lrc-fix.py

The EXE will be at dist/lrc-fix.exe.

About

Fix encoding issues in .lrc (lyrics) files — auto-detect the original encoding and convert to UTF-8.

Topics

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Contributors

Languages