To control matching order of magic patterns one may use "magic priority=", but glob patterns match in order of their appearance in the database file, so:
*.ts is currently recognized as application/x-linguist but without any magic pattern. If we position video/mp2t AFTER it, we can control with the magic pattern if a *.ts becomes video/mp2t or not. I carefully chose the magic pattern to be exactly as strict as necessary to match all valid video/mp2t.
*.m2t is currently recognized as video/mpeg which is wrong according to Wikipedia and e.g. https://bugs.launchpad.net/bugs/89543. So I chose to position video/mp2t BEFORE video/mpeg.
Created an attachment (id=33748)
Adds support for video/mp2t (MPEG-2 transport streams)
I have here the patch to recognize video/mp2t (MPEG-2 transport streams). It's an enhanced version of https:/ /bugs.freedeskt op.org/ show_bug. cgi%3Fid% 3D24690% 23c1. Naming comes from http:// www.rfc- editor. org/rfc/ rfc3555. txt (page 38). The glob patterns come from http:// en.wikipedia. org/wiki/ MPEG_transport_ stream and are all not yet mentioned in the mime database, except *.ts and *.m2t.
To control matching order of magic patterns one may use "magic priority=", but glob patterns match in order of their appearance in the database file, so:
*.ts is currently recognized as application/ x-linguist but without any magic pattern. If we position video/mp2t AFTER it, we can control with the magic pattern if a *.ts becomes video/mp2t or not. I carefully chose the magic pattern to be exactly as strict as necessary to match all valid video/mp2t.
*.m2t is currently recognized as video/mpeg which is wrong according to Wikipedia and e.g. https:/ /bugs.launchpad .net/bugs/ 89543. So I chose to position video/mp2t BEFORE video/mpeg.