Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
executable file 30 lines (23 sloc) 0.529 kb
#!/usr/bin/env bash
if [[ ! -e "$1" ]]; then cat <<HELP
"Cowboy" Ben Alman MP3 Song Tagger
Usage: $(basename "$0") Song.mp3 [Optional Song Title]
HELP
exit 1; fi
file="$1"
shift
if [ "$1" ]; then
title="$*"
else
title="$(basename "$file" ".mp3")"
fi
id3tool \
--set-title="$title" \
--set-album="The Cowboy's Plaid Sombrero" \
--set-artist='"Cowboy" Ben Alman' \
--set-year="$(date +%Y)" \
--set-note='More @ http://benalman.com/' \
--set-genre-word='Jazz+Funk' \
"$file"
id3tool "$file"
echo 'All done!'
Jump to Line
Something went wrong with that request. Please try again.