1
0
mirror of https://github.com/pisto/oggify synced 2024-11-16 20:57:30 +00:00
oggify/tag_ogg

21 lines
349 B
Plaintext
Raw Normal View History

#!/bin/bash
2019-02-14 15:07:21 +00:00
set -e
fname="${4} - ${2}.ogg"
fname="${fname//\//-}"
cat > "${fname}"
echo "${fname}"
2019-02-14 15:07:21 +00:00
{
echo "SPOTIFY_ID=${1}"
title="${2//'\n'/' '}"
album="${3//'\n'/' '}"
echo "TITLE=${title}"
echo "ALBUM=${album}"
shift 3
2019-02-14 15:07:21 +00:00
for artist in "$@"; do
artist="${artist//'\n'/' '}"
echo "ARTIST=${artist}"
2019-02-14 15:07:21 +00:00
done
} | vorbiscomment -a "${fname}"