From 1dd25c102727ec4092d199ad9c51fb6183a9e3fb Mon Sep 17 00:00:00 2001 From: Breizh Date: Sat, 1 Jul 2023 01:50:14 +0200 Subject: [PATCH] Hardcode .opus extension --- generator.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/generator.sh b/generator.sh index 677e1c2..70a710a 100755 --- a/generator.sh +++ b/generator.sh @@ -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")"