summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
98a4933)
Check that the flac file has a cuesheet before trying to extract it.
git-svn-id: http://abcde.googlecode.com/svn/trunk@187
a0fa61bc-5347-0410-a1a9-
7f54aa4e1825
disktool -u ${CDROM#/dev/}
fi
if [ "$CDROMREADERSYNTAX" = "flac" ] ; then
disktool -u ${CDROM#/dev/}
fi
if [ "$CDROMREADERSYNTAX" = "flac" ] ; then
- if [ "$TRACKINFO" = "" ]; then
+ if $METAFLAC $METAFLACOPTS --export-cuesheet-to=- $CDROM > /dev/null 2>&1 ; then
TRACKINFO=$($METAFLAC $METAFLACOPTS --export-cuesheet-to=- $CDROM | $CUE2DISCID)
else
TRACKINFO=$($METAFLAC $METAFLACOPTS --export-cuesheet-to=- $CDROM | $CUE2DISCID)
else
- if $METAFLAC $METAFLACOPTS --export-cuesheet-to=- $CDROM > /dev/null 2>&1 ; then :; else
- log error "the input flac file does not contain a cuesheet."
- exit 1
- fi
+ log error "the input flac file does not contain a cuesheet."
+ exit 1
fi
else
case "$CDDBMETHOD" in
fi
else
case "$CDDBMETHOD" in
esac
if [ "$DOCDDB" = "y" ]; then
esac
if [ "$DOCDDB" = "y" ]; then
+ # start with a sane default:
+ CDDBLOCALSTATUS=notfound
if [ $CDDBUSELOCAL = "y" ]; then
do_localcddb
fi
if [ $CDDBUSELOCAL = "y" ]; then
do_localcddb
fi