1
0
mirror of https://github.com/pisto/oggify synced 2024-11-21 21:27:29 +00:00

cleanup tag_ogg

This commit is contained in:
Lorenzo Pistone 2019-02-19 13:05:38 +01:00 committed by GitHub
parent ba672d1f91
commit eb82e3c5b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,14 +7,11 @@ fname="${fname//\//-}"
cat > "${fname}" cat > "${fname}"
{ {
echo "SPOTIFY_ID=${1}" echo "SPOTIFY_ID=${1}"
title="${2//'\n'/' '}" echo "TITLE=${2//'\n'/' '}"
album="${3//'\n'/' '}" echo "ALBUM=${3//'\n'/' '}"
echo "TITLE=${title}"
echo "ALBUM=${album}"
shift 3 shift 3
for artist in "$@"; do for artist in "$@"; do
artist="${artist//'\n'/' '}" echo "ARTIST=${artist//'\n'/' '}"
echo "ARTIST=${artist}"
done done
} | vorbiscomment -a "${fname}" } | vorbiscomment -a "${fname}"
echo "${fname}" echo "${fname}"