support for new audio/ogg & audio/flac mimetypes
This commit is contained in:
parent
b38138667a
commit
82f1648a4d
@ -17,7 +17,7 @@ getFiles() {
|
||||
EOWhere
|
||||
then
|
||||
mimetype=$(file -b --mime-type "$sourcepath/$filename")
|
||||
if [[ $mimetype == application/ogg ]]
|
||||
if [[ $mimetype == application/ogg ]] || [[ $mimetype == audio/ogg ]]
|
||||
then
|
||||
case "$(head -n5 "$sourcepath/$filename")" in
|
||||
*'vorbis'*)
|
||||
|
||||
@ -15,10 +15,18 @@ getTags() {
|
||||
type=soxi
|
||||
(( disablesoxi )) && unset type
|
||||
;;
|
||||
audio/ogg)
|
||||
type=soxi
|
||||
(( disablesoxi )) && unset type
|
||||
;;
|
||||
audio/x-flac)
|
||||
type=FLAC
|
||||
(( disableflac )) && unset type
|
||||
;;
|
||||
audio/flac)
|
||||
type=FLAC
|
||||
(( disableflac )) && unset type
|
||||
;;
|
||||
video/webm)
|
||||
type=WebM
|
||||
(( disablemkvextract || disableogginfo )) && unset type
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user