Hardcode .opus extension
This commit is contained in:
parent
f63a111ba6
commit
1dd25c1027
1 changed files with 1 additions and 0 deletions
|
@ -166,6 +166,7 @@ do
|
|||
[[ "$i" =~ \.mp3$ ]] && mimetype="audio/mpeg"
|
||||
[[ "$i" =~ \.mp4$ ]] && mimetype="video/mp4"
|
||||
[[ "$i" =~ \.flac$ ]] && mimetype="audio/flac"
|
||||
[[ "$i" =~ \.opus$ ]] && mimetype="audio/ogg"
|
||||
|
||||
# Détection automatique du type MIME si non hardcodé
|
||||
[[ -z "$mimetype" ]] && mimetype="$(file --mime-type -b -e ascii -e compress -e tar -e cdf "$i")"
|
||||
|
|
Loading…
Reference in a new issue