Compare commits

..

2 Commits

Author SHA1 Message Date
Vincent Riquer
c56080b58d toys/createindex: update vorbis, opus and flac mime-type 2025-01-23 00:42:23 +01:00
Vincent Riquer
9c4f271109 update .gitignore 2025-01-23 00:41:15 +01:00
2 changed files with 10 additions and 6 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
*.ex *.ex
*.EX *.EX
trace.log trace.log
.vscode/

View File

@ -407,10 +407,13 @@ do
rest="${rest#*::AtOM:SQL:Sep::}" rest="${rest#*::AtOM:SQL:Sep::}"
case $mimetype in case $mimetype in
application/ogg\ opus) type=Opus ;; application/ogg\ opus) type=Opus ;;
audio/ogg\ opus) type=Opus ;;
application/ogg\ vorbis) type=Vorbis ;; application/ogg\ vorbis) type=Vorbis ;;
audio/ogg\ vorbis) type=Vorbis ;;
audio/mp4) type=MPEG4\ Audio;; audio/mp4) type=MPEG4\ Audio;;
audio/mpeg) type=MPEG\ Audio;; audio/mpeg) type=MPEG\ Audio;;
audio/x-flac) type=FLAC ;; audio/x-flac) type=FLAC ;;
audio/flac) type=FLAC ;;
video/mpeg) type=MPEG\ Video;; video/mpeg) type=MPEG\ Video;;
video/webm) type=WebM ;; video/webm) type=WebM ;;
video/x-flv) type=Flash\ Video;; video/x-flv) type=Flash\ Video;;
@ -687,9 +690,9 @@ maxcountlen=${#maxcountlen}
rest="${line#*::AtOM:SQL:Sep::}::AtOM:SQL:Sep::" rest="${line#*::AtOM:SQL:Sep::}::AtOM:SQL:Sep::"
totalsize="${line%%::AtOM:SQL:Sep::*}" totalsize="${line%%::AtOM:SQL:Sep::*}"
for format in \ for format in \
audio/x-flac \ audio/flac \
application/ogg\ vorbis \ audio/ogg\ vorbis \
application/ogg\ opus \ audio/ogg\ opus \
audio/mpeg \ audio/mpeg \
audio/mp4 \ audio/mp4 \
\ \
@ -715,11 +718,11 @@ do
size="${rest%%::AtOM:SQL:Sep::*}" size="${rest%%::AtOM:SQL:Sep::*}"
(( count )) || continue (( count )) || continue
case $format in case $format 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/mp4) type=MPEG4\ Audio ;;
audio/mpeg) type=MPEG\ Audio ;; audio/mpeg) type=MPEG\ Audio ;;
audio/x-flac) type=FLAC ;; audio/flac) type=FLAC ;;
video/mpeg) type=MPEG\ Video ;; video/mpeg) type=MPEG\ Video ;;
video/webm) type=WebM ;; video/webm) type=WebM ;;
video/x-flv) type=Flash\ Video ;; video/x-flv) type=Flash\ Video ;;