mirror of
https://github.com/python/cpython.git
synced 2024-11-24 02:15:30 +08:00
bpo-45411: Update mimetypes.py (GH-28792)
.vtt and .srt files are common subtitle files, used by browsers.
This commit is contained in:
parent
c7e81fcf95
commit
d74da9e140
@ -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',
|
||||
|
@ -0,0 +1 @@
|
||||
Add extensions for files containing subtitles - .srt & .vtt - to the mimetypes.py module.
|
Loading…
Reference in New Issue
Block a user