fix vorbis/opus differentiation
This commit is contained in:
parent
b4909b46d6
commit
d9031f784f
@ -19,7 +19,7 @@ getFiles() {
|
|||||||
mimetype=$(file -b --mime-type "$sourcepath/$filename")
|
mimetype=$(file -b --mime-type "$sourcepath/$filename")
|
||||||
if [[ $mimetype == application/ogg ]] || [[ $mimetype == audio/ogg ]]
|
if [[ $mimetype == application/ogg ]] || [[ $mimetype == audio/ogg ]]
|
||||||
then
|
then
|
||||||
case "$(head -n5 "$sourcepath/$filename")" in
|
case "$(head -n5 "$sourcepath/$filename" | tr -d '\0')" in
|
||||||
*'vorbis'*)
|
*'vorbis'*)
|
||||||
mimetype+=' vorbis'
|
mimetype+=' vorbis'
|
||||||
;;
|
;;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user