1
0
mirror of https://github.com/pisto/oggify synced 2024-11-22 01:37:29 +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}"
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}"
2019-02-19 12:03:50 +00:00
echo "${fname}"