# Cut off any command-line option we added in
X=$(echo $@ | cut -d' ' -f2)
# Test for built-in abcde.function
- [ "$X" != "${X#abcde.}" ] && type $X >/dev/null 2&>1 && return
+ [ "$X" != "${X#abcde.}" ] && type $X >/dev/null 2>&1 && return
if [ "$(which $X)" = "" ]; then
log error "$X is not in your path." >&2
log info "Define the full path to the executable if it exists on your system." >&2
IFS=":"
set -- $1
IFS="$OIFS"
+ local first second third
+ first=$(expr ${1} + 0 )
+ second=$(expr ${2} + 0 )
+ third=$(expr ${3} + 0 )
- echo $(( ((($1 * 60) + $2) * 75) + $3 ))
+ echo $(( ((($first * 60) + $second) * 75) + $third ))
}
OFFSET=150
flac)
if $METAFLAC $METAFLACOPTS --export-cuesheet-to=- "$CDROM" > /dev/null 2>&1 ; then
case "$CUE2DISCID" in
+ # FIXME # right now we have 2 cue2discid internal
+ # implementations: builtin and abcde.cue2discid. Test
+ # both of them and decide which one we want to use.
builtin)
#vecho "Using builtin cue2discid implementation..."
CUESHEET="$(metaflac $METAFLACOPTS --export-cuesheet-to=- "$CDROM")"
do_musicbrainz ()
{
+# Use MBE_TOCGetCDIndexId on a perl query
:
}