bpo-45411: Update mimetypes.py (GH-28792)

.vtt and .srt files are common subtitle files, used by browsers.
This commit is contained in:
Josephine-Marie 2021-10-11 13:05:28 +02:00 committed by GitHub
parent c7e81fcf95
commit d74da9e140
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View File

@ -552,8 +552,10 @@ def _default_mime_types():
'.h' : 'text/plain',
'.ksh' : 'text/plain',
'.pl' : 'text/plain',
'.srt' : 'text/plain',
'.rtx' : 'text/richtext',
'.tsv' : 'text/tab-separated-values',
'.vtt' : 'text/vtt',
'.py' : 'text/x-python',
'.etx' : 'text/x-setext',
'.sgm' : 'text/x-sgml',

View File

@ -0,0 +1 @@
Add extensions for files containing subtitles - .srt & .vtt - to the mimetypes.py module.