Mercurial > ~darius > hgwebdir.cgi > cddb-stuff
comparison gettracks.sh @ 5:cf06ab549064
Write files to mark our progress and skip doing tracks if we have
already done them.
author | darius |
---|---|
date | Sat, 12 Aug 2000 07:11:06 +0000 |
parents | 74031379d3cb |
children | c9ade2a9c808 |
comparison
equal
deleted
inserted
replaced
4:3a7a8d8a070a | 5:cf06ab549064 |
---|---|
15 #comp="gogo -silent -offset 0 -b 192 stdin" | 15 #comp="gogo -silent -offset 0 -b 192 stdin" |
16 | 16 |
17 for t in $tracks ; do | 17 for t in $tracks ; do |
18 num=`printf %02d $t` | 18 num=`printf %02d $t` |
19 name=`printf track_%s.mp3 $num` | 19 name=`printf track_%s.mp3 $num` |
20 if [ -e ".${num}.done" ]; then | |
21 echo Skipping $num | |
22 continue | |
23 fi | |
20 echo Ripping $num to $name | 24 echo Ripping $num to $name |
21 eval $ripper 2>> rip.log | sox -t cdr - -t wav - | $comp > $name | 25 eval $ripper 2>> rip.log | sox -t cdr - -t wav - | $comp > $name |
22 if [ $? -ne 0 ]; then | 26 if [ $? -ne 0 ]; then |
23 echo "Failed!" | 27 echo "Failed!" |
24 exit 1 | 28 exit 1 |
25 fi | 29 fi |
30 touch ".${num}.done" | |
26 done | 31 done |
27 | 32 |
33 rm .*.done | |
34 |