mirror of
https://github.com/pisto/oggify
synced 2024-12-22 21:36:58 +00:00
fix trailing whitespace in vorbis comments
This commit is contained in:
parent
6d11933999
commit
f7b0e2f17d
17
tag_ogg
17
tag_ogg
@ -1,19 +1,20 @@
|
||||
#!/bin/sh
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
fname=$(echo "${4} - ${2}.ogg" | tr '/' -)
|
||||
cat > "$fname"
|
||||
echo "$fname"
|
||||
fname="${4} - ${2}.ogg"
|
||||
fname="${fname//\//-}"
|
||||
cat > "${fname}"
|
||||
echo "${fname}"
|
||||
{
|
||||
echo "SPOTIFY_ID=${1}"
|
||||
title=$(tr '\n' ' ' <<< "${2}")
|
||||
album=$(tr '\n' ' ' <<< "${3}")
|
||||
title="${2//'\n'/' '}"
|
||||
album="${3//'\n'/' '}"
|
||||
echo "TITLE=${title}"
|
||||
echo "ALBUM=${album}"
|
||||
shift 3
|
||||
for artist in "$@"; do
|
||||
artist=$(tr '\n' ' ' <<< "${artist}")
|
||||
artist="${artist//'\n'/' '}"
|
||||
echo "ARTIST=${artist}"
|
||||
done
|
||||
} | vorbiscomment -a "$fname"
|
||||
} | vorbiscomment -a "${fname}"
|
||||
|
Loading…
Reference in New Issue
Block a user