scanscript.sh
author Stiletto <blasux@blasux.ru>
Sat, 12 Feb 2011 17:03:08 +0300
changeset 6 f0c87fb62b66
parent 5 981be8773be7
child 7 1928f1a1ee5b
permissions -rwxr-xr-x
example updater, two metadata extractors
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
3
38269b62d856 colon fix, scanscript
Stiletto <blasux@blasux.ru>
parents:
diff changeset
     1
#!/bin/sh
38269b62d856 colon fix, scanscript
Stiletto <blasux@blasux.ru>
parents:
diff changeset
     2
PROGDIR=$(dirname $(readlink -f $0))
38269b62d856 colon fix, scanscript
Stiletto <blasux@blasux.ru>
parents:
diff changeset
     3
find "$1" -type f| while read fname; do
6
f0c87fb62b66 example updater, two metadata extractors
Stiletto <blasux@blasux.ru>
parents: 5
diff changeset
     4
    EXT="${fname/*./}"
f0c87fb62b66 example updater, two metadata extractors
Stiletto <blasux@blasux.ru>
parents: 5
diff changeset
     5
    if [ "$EXT" == "mp3" ];then
f0c87fb62b66 example updater, two metadata extractors
Stiletto <blasux@blasux.ru>
parents: 5
diff changeset
     6
        $PROGDIR/extractors/ext-mpg123 "$fname"
f0c87fb62b66 example updater, two metadata extractors
Stiletto <blasux@blasux.ru>
parents: 5
diff changeset
     7
    else
f0c87fb62b66 example updater, two metadata extractors
Stiletto <blasux@blasux.ru>
parents: 5
diff changeset
     8
        true#$PROGDIR/extractors/ext-taglib "$fname"
f0c87fb62b66 example updater, two metadata extractors
Stiletto <blasux@blasux.ru>
parents: 5
diff changeset
     9
    fi
3
38269b62d856 colon fix, scanscript
Stiletto <blasux@blasux.ru>
parents:
diff changeset
    10
done