support for new audio/ogg & audio/flac mimetypes

This commit is contained in:
Vincent Riquer 2025-01-20 19:20:30 +01:00
parent b38138667a
commit 82f1648a4d
2 changed files with 9 additions and 1 deletions

View File

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

View File

@ -15,10 +15,18 @@ getTags() {
type=soxi type=soxi
(( disablesoxi )) && unset type (( disablesoxi )) && unset type
;; ;;
audio/ogg)
type=soxi
(( disablesoxi )) && unset type
;;
audio/x-flac) audio/x-flac)
type=FLAC type=FLAC
(( disableflac )) && unset type (( disableflac )) && unset type
;; ;;
audio/flac)
type=FLAC
(( disableflac )) && unset type
;;
video/webm) video/webm)
type=WebM type=WebM
(( disablemkvextract || disableogginfo )) && unset type (( disablemkvextract || disableogginfo )) && unset type