Skip to content

gh-146341: Add new video MIME types to mimetypes.py#146342

Open
clin1234 wants to merge 14 commits into
python:mainfrom
clin1234:video-mimes
Open

gh-146341: Add new video MIME types to mimetypes.py#146342
clin1234 wants to merge 14 commits into
python:mainfrom
clin1234:video-mimes

Conversation

@clin1234

@clin1234 clin1234 commented Mar 23, 2026

Copy link
Copy Markdown
Contributor

@benediktjohannes

Copy link
Copy Markdown
Contributor

Please also like in the other PRs have a look on the checks and declare why failures are unrelated or fix them if not

- ``.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

@benediktjohannes benediktjohannes left a comment

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.

Otherwise from short overview LGTM! Thank You for your effort!

@clin1234

clin1234 commented May 4, 2026

Copy link
Copy Markdown
Contributor Author

Will this be merged in before beta1, and can this still be merged in during the beta releases?

@read-the-docs-community

read-the-docs-community Bot commented May 4, 2026

Copy link
Copy Markdown

@StanFromIreland

Copy link
Copy Markdown
Member

You have conflicts, please fix them.

@clin1234

clin1234 commented Jul 7, 2026

Copy link
Copy Markdown
Contributor Author

@benediktjohannes @hugovk @StanFromIreland, mind reviewing this PR again?

Comment thread Doc/whatsnew/3.15.rst Outdated
John Franey
in :gh:`144217`, :gh:`145720`, :gh:`140937`, :gh:`139959`, :gh:`145698`,
:gh:`145718`, :gh:`145918`, and :gh:`144213`.)
:gh:`145718`, :gh:`146342`, :gh:`145918`, and :gh:`144213`.)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The 3.15 feature freeze has passed, please update for 3.16.

Comment thread Lib/mimetypes.py Outdated
Comment thread Lib/mimetypes.py
Comment on lines +684 to +685
'.3gp' : 'video/3gpp',
'.3g2' : 'video/3gpp2',

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We already have these earlier in the dict:

        '.3gp'    : 'audio/3gpp',
...
        '.3g2'    : 'audio/3gpp2',

So these new video ones overwrite the audio ones.

Should we change it to the video ones, and remove the audio?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Well, they're both official MIME types: iana.org/assignments/media-types/audio/3gpp and iana.org/assignments/media-types/video/3gpp. The only major difference as far as I can tell is that the former cannot contain any visual data

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Interestingly, per the official 3GPP TS 26.244 V19.1.0 Specification:

The type "video/3gpp" is valid for all files. It is valid to serve an audio-only file as "video/3gpp".

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

So, remove the audio

Comment thread Doc/whatsnew/3.16.rst Outdated
clin1234 and others added 2 commits July 7, 2026 10:38
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants