id3conv: a commandline tool to fix encoding error in music files
Currently, id3conv supports only conversion from GBK to UTF-8 assuming
the ID3 tags were incorrectly encoded in latin-1 or ISO-8859-1 and decoded
as UTF-8 on Unix-like systems.
requirements
go >= 1.8
dep >= 0.5
installation
clone this repo
dep ensure
cd main && go build
cp main where_you_wanna_be/id3conv
run it like id3conv ${musicFile1} ${musicFile2}
enjoy correct UTF-8 meta info in your music
integrate with macOS context menu with automator
open automator
create an empty service
set workflow receives current <- audio files in Finder
look for run shell script on the left menu and drag it in
input a script like this:
for f in "$@"
do
/usr/local/bin/id3conv "$( echo "$f" | sed 's/ /\ /g' )"
done
Suppose you save your main binary as /usr/local/bin/id3conv.