fix vorbis/opus differentiation

This commit is contained in:
Vincent Riquer 2025-01-20 22:58:32 +01:00
parent b4909b46d6
commit d9031f784f

View File

@ -19,7 +19,7 @@ getFiles() {
mimetype=$(file -b --mime-type "$sourcepath/$filename")
if [[ $mimetype == application/ogg ]] || [[ $mimetype == audio/ogg ]]
then
case "$(head -n5 "$sourcepath/$filename")" in
case "$(head -n5 "$sourcepath/$filename" | tr -d '\0')" in
*'vorbis'*)
mimetype+=' vorbis'
;;