49 lines
840 B
Plaintext
49 lines
840 B
Plaintext
decodeFile() {
|
|
if ! decodetaskid=$(
|
|
Select tasks id <<<"key = $tmpfile"
|
|
)
|
|
then
|
|
decodetaskid=$(
|
|
Insert tasks <<-EOInsert
|
|
key $tmpfile
|
|
source_file $fileid
|
|
$(
|
|
for key in ${!commandline[@]}
|
|
do
|
|
echo "cmd_arg$key ${commandline[key]}"
|
|
done
|
|
)
|
|
status 0
|
|
EOInsert
|
|
)
|
|
progressSpin
|
|
fi
|
|
if (( sox_needed ))
|
|
then
|
|
cleanup="$tempdir/$tmpfile"
|
|
decodeSox "$tempdir/$tmpfile.wav"
|
|
if ! soxtaskid=$(
|
|
Select tasks id <<<"key = $tmpfile"
|
|
)
|
|
then
|
|
soxtaskid=$(
|
|
Insert tasks <<-EOInsert
|
|
key $tmpfile
|
|
source_file $fileid
|
|
$(
|
|
for key in ${!commandline[@]}
|
|
do
|
|
echo "cmd_arg$key ${commandline[key]}"
|
|
done
|
|
)
|
|
requires $decodetaskid
|
|
required $decodetaskid
|
|
status 0
|
|
cleanup $cleanup
|
|
EOInsert
|
|
)
|
|
progressSpin
|
|
fi
|
|
fi
|
|
}
|