🦀 ClawHub
CD 转 FLAC 音频转换器
by @hanshojin
Convert CD audio archives (RAR files containing WAV+CUE pairs) into organized FLAC files. Handles RAR extraction, CUE-based track splitting, GBK encoding fix...
💡 Examples
python3 skills/cd2flac/scripts/cd2flac.py [options]
Basic — process RAR archives in a directory
python3 skills/cd2flac/scripts/cd2flac.py "/path/to/albums/"
With synced lyrics (Netease + Kugou)
python3 skills/cd2flac/scripts/cd2flac.py "/path/to/albums/" --lyrics
Inject lyrics into already converted FLACs (no conversion)
python3 skills/cd2flac/scripts/cd2flac.py "/path/to/albums/" --lyrics-only
Standalone lyric injector (for any FLAC directory)
python3 skills/cd2flac/scripts/lyric.py "/path/to/album/"
python3 skills/cd2flac/scripts/lyric.py "/path/to/track.flac"
Dry run — preview without changes
python3 skills/cd2flac/scripts/cd2flac.py "/path/to/albums/" --dry-run
Keep WAV/CUE, delete RAR after extraction
python3 skills/cd2flac/scripts/cd2flac.py "/path/" --keep-wav --delete-rar
Process subdirectories recursively
python3 skills/cd2flac/scripts/cd2flac.py "/path/" --recursive --lyrics
Process already-extracted WAV+CUE pairs (no RAR)
python3 skills/cd2flac/scripts/cd2flac.py "/path/to/album_with_wav/"
TERMINAL
clawhub install cd2flac