From 2427330aa63435cc06590d84480437d39c6cd2e5 Mon Sep 17 00:00:00 2001 From: Vincent Riquer Date: Wed, 6 Mar 2013 22:37:54 +0100 Subject: [PATCH] soxi (from the SoX distribution) reads ID3v2 --- atom | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/atom b/atom index 97d4501..e4bb3d8 100755 --- a/atom +++ b/atom @@ -638,22 +638,14 @@ gettag() { } getInfos::MP3() { -# mp3info only supports ID3v1. Information may be incomplete. infos=$( - mp3info -p ' -ALBUM=%l -ARTIST=%a -GENRE=%g -TITLE=%t -TRACKNUM=%n -YEAR=%y' "$sourcepath/$filename" \ - | iconv -f $sourceid3charset -t utf-8//TRANSLIT + soxi -a "$sourcepath/$filename" ) album=$(gettag album) artist=$(gettag artist) genre=$(gettag genre) title=$(gettag title) - tracknum=$(gettag tracknum) + tracknum=$(gettag tracknumber) year=$(gettag year) [ -n "$album" \ -o -n "$artist" \