view 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
line wrap: on
line source

#!/bin/sh

if [ $# -lt 1 ]; then
  echo Usage: $0 \<tracknum\> [ \<tracknum\> ... ]
  exit 1
fi

rm -f /tmp/ripper.pipe
mkfifo /tmp/ripper.pipe

for t in $* ; do
  num=`printf %02d $t`
  name=`printf track_%s.mp3 $num`
  echo Ripping $num to $name
  echo
  (/usr/bin/time cdd -t $num - rip.log | team 256k 16 | gogo -silent -offset 0 -b 192 stdin $name) 2>> /tmp/rip.log
  if [ $? -ne 0 ]; then
    echo "Failed!"
    rm -f /tmp/ripper.pipe
    exit 1
  fi
  rm -f /tmp/ripper.pipe
done

rm -f /tmp/ripper.pipe