mirror of
https://github.com/pisto/oggify
synced 2024-11-14 23:37:30 +00:00
14 lines
233 B
Plaintext
14 lines
233 B
Plaintext
|
#!/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"
|