瀏覽代碼

Fixed vorbis commenting.

master
Svend Sorensen 19 年之前
父節點
當前提交
c1ea44a174
共有 1 個檔案被更改,包括 6 行新增4 行删除
  1. +6
    -4
      tools/cuetag.sh

+ 6
- 4
tools/cuetag.sh 查看文件

@@ -9,7 +9,9 @@ cue_file=""
# Vorbis Comments
vorbis()
{
VORBISCOMMENT=vorbiscomment
# -w to overwrite existing comments
# -a to append to existing comments
VORBISCOMMENT="vorbiscomment -w"

# space seperated list of recomended stardard field names
# see http://www.xiph.org/ogg/vorbis/doc/v-comment.html
@@ -35,7 +37,7 @@ vorbis()
CONTACT=''
ISRC='%i %u'

for field in $fields; do
(for field in $fields; do
value=""
for conv in `eval echo \\$$field`; do
value=`$CUEPRINT -n $1 -t "$conv\n" $cue_file`
@@ -46,9 +48,9 @@ vorbis()
done

if [ -n "$value" ]; then
echo $VORBISCOMMENT -t "$field=$value" $2
echo "$field=$value"
fi
done
done) | $VORBISCOMMENT -c - $2
}

id3()


Loading…
取消
儲存