X-Git-Url: https://git.hcoop.net/clinton/abcde.git/blobdiff_plain/1366e842071f6dd8bf0ae968c08c3d9437c68491..f97e22a3a87cc207445cfc34dab55692f5b39c49:/abcde?ds=sidebyside diff --git a/abcde b/abcde index 553a818..e6b8aad 100755 --- a/abcde +++ b/abcde @@ -505,12 +505,12 @@ do_tag () echo ARTIST="$TRACKARTIST" echo ALBUM="$DALBUM" echo TITLE="$TRACKNAME" - if [ -n "$CDYEAR" ]; then + if [ -n "$CDYEAR" ]; then echo DATE="$CDYEAR" - fi - if [ -n "$CDGENRE" ]; then + fi + if [ -n "$CDGENRE" ]; then echo GENRE="$CDGENRE" - fi + fi echo TRACKNUMBER=${TRACKNUM:-$1} echo CDDB=$CDDBDISCID if [ "$(eval echo ${COMMENT})" != "" ]; then @@ -1047,7 +1047,13 @@ do_discid () #elif [ -z "$DISCID" ]; then if [ -z "$DISCID" ]; then vecho -n "Getting CD track info... " + if [ "$OSFLAVOUR" = "OSX" ]; then + disktool -u ${CDROM#/dev/} + fi TRACKINFO=$($CDDISCID $CDROM) + if [ "$OSFLAVOUR" = "OSX" ]; then + disktool -m ${CDROM#/dev/} + fi # Make sure there's a CD in there by checking cd-discid's return code if [ "$?" = "1" ]; then echo "abcde error: CD could not be read. Perhaps there's no CD in the drive?" >&2 @@ -1204,9 +1210,10 @@ do_discid () cat /dev/null > "$ABCDETEMPDIR/status" fi if [ X"$CUEFILE" = "Xy" -a X"$WEHAVEACD" = "Xy" ]; then - if checkstatus cuefile ; then :; else - $MKCUE $MKCUEOPTS > $ABCDETEMPDIR/cue-$(echo $TRACKINFO | cut -f1 -d' ').txt - echo cuefile >> "$ABCDETEMPDIR/status" + if checkstatus cuefile >/dev/null ; then :; else + CUEFILE=cue-$(echo $TRACKINFO | cut -f3 -d' ').txt + $MKCUE $MKCUEOPTS > $ABCDETEMPDIR/$CUEFILE + echo cuefile=$CUEFILE >> "$ABCDETEMPDIR/status" fi fi # If we got the CDPARANOIA status and it is not recorded, save it now @@ -1222,6 +1229,13 @@ do_discid () echo "$TRACKINFO" > "$ABCDETEMPDIR/discid" } +# do_mkcue + +do_mkcue() +{ + +} + # do_cddbparse # Parses a CDDB file and outputs the title and the track names. # Variables: CDDBFILE @@ -2055,6 +2069,7 @@ elif [ X$(uname) = "XDarwin" ] ; then OSFLAVOUR=OSX # We should have disktool in OSX, but let's be sure... NEEDDISKTOOL=y + CDROMREADERSYNTAX=cddafs elif [ X$(uname) = "XOpenBSD" ] ; then HTTPGET=wget MD5SUM=md5 @@ -2835,6 +2850,10 @@ do fi ) & done +# Lets move the cue file +if checkstatus cuefile >/dev/null ; then + do_movecue +fi # Go through it again and make sure there's no distmp3 stragglers, otherwise # we'll delete the files they're working on ## FIXME ## Check also for files which are encoded using PIPEs.