From c56080b58d21f8bea7cf8068d4b1a419ce601052 Mon Sep 17 00:00:00 2001 From: Vincent Riquer Date: Thu, 23 Jan 2025 00:42:23 +0100 Subject: [PATCH] toys/createindex: update vorbis, opus and flac mime-type --- toys/createindex | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/toys/createindex b/toys/createindex index 6963104..ccc4d27 100755 --- a/toys/createindex +++ b/toys/createindex @@ -407,10 +407,13 @@ do rest="${rest#*::AtOM:SQL:Sep::}" case $mimetype in application/ogg\ opus) type=Opus ;; + audio/ogg\ opus) type=Opus ;; application/ogg\ vorbis) type=Vorbis ;; + audio/ogg\ vorbis) type=Vorbis ;; audio/mp4) type=MPEG4\ Audio;; audio/mpeg) type=MPEG\ Audio;; audio/x-flac) type=FLAC ;; + audio/flac) type=FLAC ;; video/mpeg) type=MPEG\ Video;; video/webm) type=WebM ;; video/x-flv) type=Flash\ Video;; @@ -687,9 +690,9 @@ maxcountlen=${#maxcountlen} rest="${line#*::AtOM:SQL:Sep::}::AtOM:SQL:Sep::" totalsize="${line%%::AtOM:SQL:Sep::*}" for format in \ - audio/x-flac \ - application/ogg\ vorbis \ - application/ogg\ opus \ + audio/flac \ + audio/ogg\ vorbis \ + audio/ogg\ opus \ audio/mpeg \ audio/mp4 \ \ @@ -715,11 +718,11 @@ do size="${rest%%::AtOM:SQL:Sep::*}" (( count )) || continue case $format in - application/ogg\ opus) type=Opus ;; - application/ogg\ vorbis) type=Vorbis ;; + audio/ogg\ opus) type=Opus ;; + audio/ogg\ vorbis) type=Vorbis ;; audio/mp4) type=MPEG4\ Audio ;; audio/mpeg) type=MPEG\ Audio ;; - audio/x-flac) type=FLAC ;; + audio/flac) type=FLAC ;; video/mpeg) type=MPEG\ Video ;; video/webm) type=WebM ;; video/x-flv) type=Flash\ Video ;;