scanscript.sh
author Stiletto <blasux@blasux.ru>
Thu, 22 Sep 2011 13:27:23 +0400
changeset 9 ae87469781f2
parent 7 1928f1a1ee5b
permissions -rwxr-xr-x
CUE extractor
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/*./}"
9
ae87469781f2 CUE extractor
Stiletto <blasux@blasux.ru>
parents: 7
diff changeset
     5
    case "$EXT" in
ae87469781f2 CUE extractor
Stiletto <blasux@blasux.ru>
parents: 7
diff changeset
     6
        mp3)
ae87469781f2 CUE extractor
Stiletto <blasux@blasux.ru>
parents: 7
diff changeset
     7
            $PROGDIR/extractors/ext-mpg123 "$fname"
ae87469781f2 CUE extractor
Stiletto <blasux@blasux.ru>
parents: 7
diff changeset
     8
            ;;
ae87469781f2 CUE extractor
Stiletto <blasux@blasux.ru>
parents: 7
diff changeset
     9
        cue)
ae87469781f2 CUE extractor
Stiletto <blasux@blasux.ru>
parents: 7
diff changeset
    10
            $PROGDIR/extractors/ext-cue "$fname"
ae87469781f2 CUE extractor
Stiletto <blasux@blasux.ru>
parents: 7
diff changeset
    11
            ;;
ae87469781f2 CUE extractor
Stiletto <blasux@blasux.ru>
parents: 7
diff changeset
    12
        *)
7
1928f1a1ee5b cos-list
Stiletto <blasux@blasux.ru>
parents: 6
diff changeset
    13
        true #$PROGDIR/extractors/ext-taglib "$fname"
9
ae87469781f2 CUE extractor
Stiletto <blasux@blasux.ru>
parents: 7
diff changeset
    14
    esac
3
38269b62d856 colon fix, scanscript
Stiletto <blasux@blasux.ru>
parents:
diff changeset
    15
done