[Abcde-users] How to get the CD folder for the post_encode function
Bernd Fischer-Krellenberg (gmail)
bernd.fischerkrellenberg at gmail.com
Thu Jun 18 20:39:39 BST 2015
Hi,
tried to write a post encode function to convert flac to alac.
The point is I can't get the the actual CD folder.
I can get the general output directory with $OUTPUTDIR,
but there seems to be no variable for the CD folder.
Tried to use $ALBUMFILE, but this doesn’t work.
Any one an idea how to solve this?
Thanks,
Bernd
post_encode ()
{
for FILE in ${OUTPUTDIR}/${ALBUMFILE}/*.flac; do
echo 'Converting $FLAC to ALAC ...'
avconv -i "$FILE" -c:a alac "${FILE%.*}.m4a";
rm "$FILE"
done
}
More information about the Abcde-users
mailing list