Hardcode .opus extension

This commit is contained in:
Breizh 2023-07-01 01:50:14 +02:00
parent f63a111ba6
commit 1dd25c1027

View file

@ -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")"