hasteful copy/paste

This commit is contained in:
Vincent Riquer 2013-04-05 00:36:11 +02:00
parent 14dbab3976
commit 3fd3450875

5
atom
View File

@ -141,6 +141,9 @@ getConfigDestination() {
'mp3') 'mp3')
destinationformat["$destination"]=mp3 destinationformat["$destination"]=mp3
;; ;;
'opus')
destinationformat["$destination"]=opus
;;
'vorbis') 'vorbis')
destinationformat["$destination"]=vorbis destinationformat["$destination"]=vorbis
;; ;;
@ -1269,7 +1272,7 @@ encodeFile::opus() {
[ -n "$track" ] && opusencopts+=(--comment "TRACKNUMBER=${track%/*}") [ -n "$track" ] && opusencopts+=(--comment "TRACKNUMBER=${track%/*}")
[ -n "${track#*/}" ] && opusencopts+=(--comment "TRACKTOTAL=${track#*/}") [ -n "${track#*/}" ] && opusencopts+=(--comment "TRACKTOTAL=${track#*/}")
[ -n "$year" ] && opusencopts+=(--comment "DATE=$year") [ -n "$year" ] && opusencopts+=(--comment "DATE=$year")
opusencopts+=(-o "$destdir/$destfile.ogg" "$tempdir/$tmpfile.wav") opusencopts+=("$tempdir/$tmpfile.wav" "$destdir/$destfile.opus")
encodetaskid=$( encodetaskid=$(
Insert tasks <<-EOInsert Insert tasks <<-EOInsert
key ${fileid}opusenc$destination key ${fileid}opusenc$destination