You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tika.apache.org by ta...@apache.org on 2020/06/16 16:53:32 UTC

[tika] branch master updated: tika-mimetypes: Add mimetypes for .mpd, .m3u8 and .m4s (#320)

This is an automated email from the ASF dual-hosted git repository.

tallison pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tika.git


The following commit(s) were added to refs/heads/master by this push:
     new 57b26e9  tika-mimetypes: Add mimetypes for .mpd, .m3u8 and .m4s (#320)
57b26e9 is described below

commit 57b26e9756c59efc08eb180636460457855ccf95
Author: pszemus <pr...@gmail.com>
AuthorDate: Tue Jun 16 18:53:22 2020 +0200

    tika-mimetypes: Add mimetypes for .mpd, .m3u8 and .m4s (#320)
    
    If any magic is available for the 2 that don't have it, that'd be great...but I understand magic might not exist.  Thank you!
---
 .../resources/org/apache/tika/mime/tika-mimetypes.xml   | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml b/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml
index f8b44f1..ba97441 100644
--- a/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml
+++ b/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml
@@ -146,6 +146,13 @@
     <glob pattern="*.cu"/>
   </mime-type>
   <mime-type type="application/cybercash"/>
+  <mime-type type="application/dash+xml">
+	  <glob pattern="*.mpd" />
+	    <magic>
+        <match value="&lt;MPD" type="string" offset="0"/>
+      </magic>
+      <sub-class-of type="application/xml"/>
+	</mime-type>
   <mime-type type="application/davmount+xml">
     <glob pattern="*.davmount"/>
   </mime-type>
@@ -1046,6 +1053,12 @@
     <sub-class-of type="application/vnd.apple.iwork" />
     <glob pattern="*.key"/>
   </mime-type>
+  <mime-type type="application/vnd.apple.mpegurl">
+    <glob pattern="*.m3u8" />
+    <magic>
+      <match value="#EXTM3U" type="string" offset="0"/>
+    </magic>
+  </mime-type>
   <mime-type type="application/vnd.apple.pages">
     <root-XML localName="document" namespaceURI="http://developer.apple.com/namespaces/sl" />
     <sub-class-of type="application/vnd.apple.iwork" />
@@ -7267,6 +7280,10 @@
   <mime-type type="video/h264">
     <glob pattern="*.h264"/>
   </mime-type>
+  <mime-type type="video/iso.segment">
+    <glob pattern="*.m4s" />
+    <sub-class-of type="video/quicktime" />
+  </mime-type>
   <mime-type type="video/jpeg">
     <glob pattern="*.jpgv"/>
   </mime-type>