1
0
mirror of https://github.com/pisto/oggify synced 2024-12-22 20:56:59 +00:00
oggify/tag_ogg

14 lines
233 B
Plaintext
Raw Normal View History

2019-02-14 15:07:21 +00:00
#!/bin/sh
set -e
fname=$(echo "${2} - ${1}.ogg" | tr '/' - | tr '\0' ' ')
cat > "$fname"
{
echo "TITLE=${1}" | tr '\n' ' '
shift
for artist in "$@"; do
echo "ARTIST=${artist}" | tr '\n' ' '
done
} | vorbiscomment -a "$fname"