mirror of
https://github.com/python/cpython.git
synced 2025-09-27 10:50:04 +00: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
2 changed files with 3 additions and 0 deletions
|
@ -552,8 +552,10 @@ def _default_mime_types():
|
||||||
'.h' : 'text/plain',
|
'.h' : 'text/plain',
|
||||||
'.ksh' : 'text/plain',
|
'.ksh' : 'text/plain',
|
||||||
'.pl' : 'text/plain',
|
'.pl' : 'text/plain',
|
||||||
|
'.srt' : 'text/plain',
|
||||||
'.rtx' : 'text/richtext',
|
'.rtx' : 'text/richtext',
|
||||||
'.tsv' : 'text/tab-separated-values',
|
'.tsv' : 'text/tab-separated-values',
|
||||||
|
'.vtt' : 'text/vtt',
|
||||||
'.py' : 'text/x-python',
|
'.py' : 'text/x-python',
|
||||||
'.etx' : 'text/x-setext',
|
'.etx' : 'text/x-setext',
|
||||||
'.sgm' : 'text/x-sgml',
|
'.sgm' : 'text/x-sgml',
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
Add extensions for files containing subtitles - .srt & .vtt - to the mimetypes.py module.
|
Loading…
Add table
Add a link
Reference in a new issue