Compare commits

...

2 Commits

Author SHA1 Message Date
Vincent Riquer
a0a1f6f2fe Fix: don't add / to path if sanitized directory name is empty 2025-01-31 02:08:15 +01:00
Vincent Riquer
9dc779fd5c fix temp file extension in sox normalize/spample-rate/channel count conversion 2025-01-24 01:33:33 +01:00
2 changed files with 3 additions and 2 deletions

View File

@ -160,7 +160,7 @@ decodeFile() {
if (( sox_needed ))
then
cleanup="$tempdir/$tmpfile"
decodeSox "$tempdir/$tmpfile"
decodeSox "$tempdir/$tmpfile.wav"
if ! soxtaskid=$(
Select tasks id <<<"key = $tmpfile"
)

View File

@ -86,7 +86,8 @@ getDestDir() {
echo "$thispart" >&${toascii[1]}
read -r -u${toascii[0]} thispart
fi
destdir+="/$(sanitizeFile "$thispart" dir)"
sanitized="$(sanitizeFile "$thispart" dir)"
destdir+="${sanitized:+/}$sanitized"
part=${part#*/}
done
fi