mirror of
https://github.com/pisto/oggify
synced 2025-11-22 21:06:30 +00:00
tag_ogg helper script
This commit is contained in:
parent
9ad4ee771c
commit
ffd5b407e9
1 changed files with 13 additions and 0 deletions
13
tag_ogg
Executable file
13
tag_ogg
Executable file
|
|
@ -0,0 +1,13 @@
|
|||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
fname=$(echo "${2} - ${1}.ogg" | tr '/' - | tr '\0' ' ')
|
||||
cat > "$fname"
|
||||
{
|
||||
echo "TITLE=${1}" | tr '\n' ' '
|
||||
shift
|
||||
for artist in "$@"; do
|
||||
echo "ARTIST=${artist}" | tr '\n' ' '
|
||||
done
|
||||
} | vorbiscomment -a "$fname"
|
||||
Loading…
Add table
Reference in a new issue