From 147c7222675fd027873faa7e921e2679d99e71cc Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Thu, 12 Nov 2020 12:13:17 +0100 Subject: [PATCH] mime types for streaming formats --- file.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/file.sh b/file.sh index 51ec245..04a8ef6 100755 --- a/file.sh +++ b/file.sh @@ -32,9 +32,14 @@ file_type(){ svg) printf 'image/svg+xml';; gif) printf 'image/gif';; webm) printf 'video/webm';; - mp4) printf 'video/mp4';; + mp4|m4v) printf 'video/mp4';; + m4a) printf 'audio/mp4';; ogg) printf 'audio/ogg';; xml) printf 'application/xml';; + m3u8) printf 'application/x-mpegURL';; + ts) printf 'video/MP2T';; + mpd) printf 'application/dash+xml';; + m4s) printf 'video/iso.segment';; *) printf 'application/octet-stream';; esac } -- 2.39.2