string "vorbis" may not appear on line 1

This commit is contained in:
Vincent Riquer 2013-05-04 03:14:26 +02:00
parent 0d511b2674
commit 2b55e7ef66

View File

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