support for new audio/ogg & audio/flac mimetypes
This commit is contained in:
parent
b38138667a
commit
82f1648a4d
@ -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'*)
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user