changeset 9 | ae87469781f2 |
parent 7 | 1928f1a1ee5b |
--- a/scanscript.sh Sat Jun 18 16:12:00 2011 +0400 +++ b/scanscript.sh Thu Sep 22 13:27:23 2011 +0400 @@ -2,9 +2,14 @@ PROGDIR=$(dirname $(readlink -f $0)) find "$1" -type f| while read fname; do EXT="${fname/*./}" - if [ "$EXT" == "mp3" ];then - $PROGDIR/extractors/ext-mpg123 "$fname" - else + case "$EXT" in + mp3) + $PROGDIR/extractors/ext-mpg123 "$fname" + ;; + cue) + $PROGDIR/extractors/ext-cue "$fname" + ;; + *) true #$PROGDIR/extractors/ext-taglib "$fname" - fi + esac done