Re: Музыка
Первый вариант перекодировки:
find -iname \*.mp3 | while IFS= read -r i; do
echo "FILE: $i"
mid3v2 "$i" | while IFS= read -r tag; do
echo "$tag"|grep -qve '^[^=]\+=[^=]\+$' && continue
if echo "$tag"|enca|grep -q "Doubly-encoded to UTF-8 from CP1251"; then
# нЕУФП ДМС ЫБЗБ ЧРЕТЕД
mid3v2 --"`echo "$tag" | iconv -f utf8 -t cp1251 | iconv -f
koi8-r -t utf-8`" "$i"
fi
if echo "$tag"|enca|grep -q "Doubly-encoded to UTF-8 from
ISO-8859-5"; then
# Äîðîæêà 8
mid3v2 --"`echo "$tag" | iconv -f utf8 -t cp1252| iconv -f cp1251
-t utf8`" "$i"
fi
done
done
Reply to:
- References:
- Музыка
- From: artiom <artiom14@yandex.ru>
- Re: Музыка
- From: Victor Wagner <vitus@wagner.pp.ru>