Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)
Paste
Pasted as Bash by Driver ( 17 years ago )
#!/bin/bash
#
# albumsplit
# Driver 2008-12-18
cue_file=$1
album_file=$2
usage()
{
echo "usage: albumsplit cuefile albumfile"
}
main()
{
if [ $# -lt 1 ]; then
usage
exit
fi
cuebreakpoints "$cue_file" | shnsplit -o flac "$album_file"
mv "$album_file" "$album_file.orig" && cuetag "$cue_file" *.flac
for fl in `ls -1 *.flac`;
do mv "$fl" "`metaflac --show-tag=TRACKNUMBER $fl |
awk '{print sprintf("%02d", substr($0, 1+index($0, "=")))}'` - `metaflac --show-tag=TITLE $fl |
awk '{print substr($0, 1+index($0, "="))}'`.flac";
done
mv *.orig "$album_file" && echo "complete"
}
main "$@"
Revise this Paste
Parent: 8070