This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Title: Add Mimetypes for Subtitle Files
Type: enhancement Stage:
Components: Library (Lib) Versions: Python 3.11, Python 3.10, Python 3.9
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: Josephine-Marie, eric.araujo, mdk, serhiy.storchaka
Priority: normal Keywords:

Created on 2021-10-08 11:25 by Josephine-Marie, last changed 2022-04-11 14:59 by admin.

Pull Requests
URL Status Linked Edit
PR 28792 merged Josephine-Marie, 2021-10-08 11:25
Messages (6)
msg403468 - (view) Author: Josephine Stolle (Josephine-Marie) * Date: 2021-10-08 11:25
Since Python is used for webdevelopment, it would be very beneficial for developers to have subtitle files as default mimetypes.
msg403469 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2021-10-08 11:30
What standard specifies these MIME types?
msg403470 - (view) Author: Josephine Stolle (Josephine-Marie) * Date: 2021-10-08 11:36
text/vtt is has IANA registration 
and .srt is plain/text
msg403478 - (view) Author: Julien Palard (mdk) * (Python committer) Date: 2021-10-08 14:06
Those two looks legit to me.
msg403650 - (view) Author: Julien Palard (mdk) * (Python committer) Date: 2021-10-11 11:05
New changeset d74da9e140441135a4eddaef9a37f00f32579038 by Josephine-Marie in branch 'main':
bpo-45411: Update (GH-28792)
msg403739 - (view) Author: Éric Araujo (eric.araujo) * (Python committer) Date: 2021-10-12 15:36
Additions to mimetypes have been backported in the past, with the thought that these are not new behaviour added but only entries in a registry (and bringing the python module in line with external data sources) so there’s value and no risk in releasing these additions in point releases.

I don’t have a link to the discussion about that, and looking at 4 or 5 recent PRs to mimetype I see that backports haven’t been consistent.  So maybe another ticket would be to synchronize the dicts in active branches + record the backport policy somewhere (not sure a comment would be enough, easy to miss at the top of a long dict).
Date User Action Args
2022-04-11 14:59:51adminsetgithub: 89574
2021-10-12 15:36:05eric.araujosetnosy: + eric.araujo

messages: + msg403739
versions: - Python 3.6, Python 3.7, Python 3.8
2021-10-11 11:05:42mdksetmessages: + msg403650
2021-10-08 14:06:30mdksetnosy: + mdk
messages: + msg403478
2021-10-08 11:36:49Josephine-Mariesetmessages: + msg403470
2021-10-08 11:30:10serhiy.storchakasetnosy: + serhiy.storchaka
messages: + msg403469
2021-10-08 11:25:40Josephine-Mariecreate