1
0
mirror of https://github.com/pisto/oggify synced 2024-11-14 18:07:29 +00:00
oggify/tag_ogg

18 lines
292 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}"
2019-02-14 15:07:21 +00:00
{
echo "SPOTIFY_ID=${1}"
2019-02-19 12:05:38 +00:00
echo "TITLE=${2//'\n'/' '}"
echo "ALBUM=${3//'\n'/' '}"
shift 3
2019-02-14 15:07:21 +00:00
for artist in "$@"; do
2019-02-19 12:05:38 +00:00
echo "ARTIST=${artist//'\n'/' '}"
2019-02-14 15:07:21 +00:00
done
} | vorbiscomment -a "${fname}"
2019-02-19 12:03:50 +00:00
echo "${fname}"