Skip to content

Commit d74da9e

Browse files
bpo-45411: Update mimetypes.py (GH-28792)
.vtt and .srt files are common subtitle files, used by browsers.
1 parent c7e81fc commit d74da9e

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

Lib/mimetypes.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -552,8 +552,10 @@ def _default_mime_types():
552552
'.h' : 'text/plain',
553553
'.ksh' : 'text/plain',
554554
'.pl' : 'text/plain',
555+
'.srt' : 'text/plain',
555556
'.rtx' : 'text/richtext',
556557
'.tsv' : 'text/tab-separated-values',
558+
'.vtt' : 'text/vtt',
557559
'.py' : 'text/x-python',
558560
'.etx' : 'text/x-setext',
559561
'.sgm' : 'text/x-sgml',
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add extensions for files containing subtitles - .srt & .vtt - to the mimetypes.py module.

0 commit comments

Comments
 (0)