annotate gettracks-gogo.sh @ 6:f5daa3cdeb58

- Clear up old variable usage. - Grok Artist/Title in TTITLE fields. - Add the ability to append to track title fields.
author darius
date Sat, 12 Aug 2000 07:12:12 +0000
parents 5cead4da1db9
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2
5cead4da1db9 Initial import.
darius
parents:
diff changeset
1 #!/bin/sh
5cead4da1db9 Initial import.
darius
parents:
diff changeset
2
5cead4da1db9 Initial import.
darius
parents:
diff changeset
3 if [ $# -lt 1 ]; then
5cead4da1db9 Initial import.
darius
parents:
diff changeset
4 echo Usage: $0 \<tracknum\> [ \<tracknum\> ... ]
5cead4da1db9 Initial import.
darius
parents:
diff changeset
5 exit 1
5cead4da1db9 Initial import.
darius
parents:
diff changeset
6 fi
5cead4da1db9 Initial import.
darius
parents:
diff changeset
7
5cead4da1db9 Initial import.
darius
parents:
diff changeset
8 rm -f /tmp/ripper.pipe
5cead4da1db9 Initial import.
darius
parents:
diff changeset
9 mkfifo /tmp/ripper.pipe
5cead4da1db9 Initial import.
darius
parents:
diff changeset
10
5cead4da1db9 Initial import.
darius
parents:
diff changeset
11 for t in $* ; do
5cead4da1db9 Initial import.
darius
parents:
diff changeset
12 num=`printf %02d $t`
5cead4da1db9 Initial import.
darius
parents:
diff changeset
13 name=`printf track_%s.mp3 $num`
5cead4da1db9 Initial import.
darius
parents:
diff changeset
14 echo Ripping $num to $name
5cead4da1db9 Initial import.
darius
parents:
diff changeset
15 echo
5cead4da1db9 Initial import.
darius
parents:
diff changeset
16 (/usr/bin/time cdd -t $num - rip.log | team 256k 16 | gogo -silent -offset 0 -b 192 stdin $name) 2>> /tmp/rip.log
5cead4da1db9 Initial import.
darius
parents:
diff changeset
17 if [ $? -ne 0 ]; then
5cead4da1db9 Initial import.
darius
parents:
diff changeset
18 echo "Failed!"
5cead4da1db9 Initial import.
darius
parents:
diff changeset
19 rm -f /tmp/ripper.pipe
5cead4da1db9 Initial import.
darius
parents:
diff changeset
20 exit 1
5cead4da1db9 Initial import.
darius
parents:
diff changeset
21 fi
5cead4da1db9 Initial import.
darius
parents:
diff changeset
22 rm -f /tmp/ripper.pipe
5cead4da1db9 Initial import.
darius
parents:
diff changeset
23 done
5cead4da1db9 Initial import.
darius
parents:
diff changeset
24
5cead4da1db9 Initial import.
darius
parents:
diff changeset
25 rm -f /tmp/ripper.pipe