Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions Doc/whatsnew/3.15.rst
Original file line number Diff line number Diff line change
Expand Up @@ -867,8 +867,17 @@ mimetypes
- ``application/vnd.ms-cab-compressed`` for ``.cab`` extension
- ``application/vnd.ms-htmlhelp`` for ``.chm`` extension
- ``application/vnd.ms-officetheme`` for ``.thmx`` extension

(Contributed by Charlie Lin in :gh:`145718`.)
- ``.3gp`` for ``video/3gpp``
- ``.3g2`` for ``video/3gpp2``
- ``.m4s`` for ``video/iso.segment``
- ``.lot`` for ``video/lottie+json``
- ``.mj2`` for ``video/mj2``
- ``.pyv`` for ``video/vnd.ms-playready.media.pyv``
- ``.blk`` and ``.bk2`` for ``video/vnd.radgamettools.bink``
- ``.sswf`` and ``.ssw`` for ``video/vnd.sealed.swf``
- ``.yt`` for ``video/vnd.youtube.yt``

(Contributed by Charlie Lin in :gh:`145718` and :gh:`146342`.)

* Add ``image/jxl``. (Contributed by Foolbar in :gh:`144213`.)
* Rename ``application/x-texinfo`` to ``application/texinfo``.
Expand Down
11 changes: 11 additions & 0 deletions Lib/mimetypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -668,8 +668,13 @@ def _default_mime_types():
'.sgml' : 'text/x-sgml',
'.vcf' : 'text/x-vcard',
'.xml' : 'text/xml',
'.3gp' : 'video/3gpp',
'.3g2' : 'video/3gpp2',
'.m4s' : 'video/iso.segment',
'.lot' : 'video/lottie+json',
'.mkv' : 'video/matroska',
'.mk3d' : 'video/matroska-3d',
'.mj2' : 'video/mj2',
'.mp4' : 'video/mp4',
'.mpeg' : 'video/mpeg',
'.m1v' : 'video/mpeg',
Expand All @@ -679,6 +684,12 @@ def _default_mime_types():
'.ogv' : 'video/ogg',
'.mov' : 'video/quicktime',
'.qt' : 'video/quicktime',
'.pyv' : 'video/vnd.ms-playready.media.pyv',
'.blk' : 'video/vnd.radgamettools.bink',
'.bk2' : 'video/vnd.radgamettools.bink',
'.sswf' : 'video/vnd.sealed.swf',
'.ssw' : 'video/vnd.sealed.swf',
'.yt' : 'video/vnd.youtube.yt',
'.webm' : 'video/webm',
'.avi' : 'video/vnd.avi',
'.m4v' : 'video/x-m4v',
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Add the following MIME types corresponding to file extensions:

- ``.3gp`` for ``video/3gpp``
- ``.3g2`` for ``video/3gpp2``
- ``.m4s`` for ``video/iso.segment``
- ``.lot`` for ``video/lottie+json``
- ``.mj2`` for ``video/mj2``
- ``.pyv`` for ``video/vnd.ms-playready.media.pyv``
- ``.blk`` and ``.bk2`` for ``video/vnd.radgamettools.bink``
- ``.sswf`` and ``.ssw`` for ``video/vnd.sealed.swf``
- ``.yt`` for ``video/vnd.youtube.yt``
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as in other PR, maybe add your name here and please add 3.15 release notes and maybe combine the PRs


(Contributed by Charlie Lin in :gh:`146342`.)
Loading