mirror of
https://github.com/pisto/oggify
synced 2024-11-14 18:07:29 +00:00
18 lines
292 B
Bash
Executable File
18 lines
292 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
fname="${4} - ${2}.ogg"
|
|
fname="${fname//\//-}"
|
|
cat > "${fname}"
|
|
{
|
|
echo "SPOTIFY_ID=${1}"
|
|
echo "TITLE=${2//'\n'/' '}"
|
|
echo "ALBUM=${3//'\n'/' '}"
|
|
shift 3
|
|
for artist in "$@"; do
|
|
echo "ARTIST=${artist//'\n'/' '}"
|
|
done
|
|
} | vorbiscomment -a "${fname}"
|
|
echo "${fname}"
|