From 46ef41070aa0820b19faf07df9f147244a95fadc Mon Sep 17 00:00:00 2001 From: rcombs Date: Fri, 7 Jun 2024 19:20:28 -0700 Subject: [PATCH 1/2] Correct MIME type for .ass files Advanced SubStation is a common subtitle format, and the ".ass" extension is not commonly used for AAC audio files. --- Lib/mimetypes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/mimetypes.py b/Lib/mimetypes.py index bacee8ba164b483..a342bcd7901f06a 100644 --- a/Lib/mimetypes.py +++ b/Lib/mimetypes.py @@ -531,7 +531,6 @@ def _default_mime_types(): '.aac' : 'audio/aac', '.adts' : 'audio/aac', '.loas' : 'audio/aac', - '.ass' : 'audio/aac', '.au' : 'audio/basic', '.snd' : 'audio/basic', '.mp3' : 'audio/mpeg', @@ -588,6 +587,7 @@ def _default_mime_types(): '.rtf' : 'text/rtf', '.tsv' : 'text/tab-separated-values', '.vtt' : 'text/vtt', + '.ass' : 'text/x-ass', '.py' : 'text/x-python', '.rst' : 'text/x-rst', '.etx' : 'text/x-setext', From be5ff85a43d4616055dd8e74e999cb9c51678e83 Mon Sep 17 00:00:00 2001 From: "blurb-it[bot]" <43283697+blurb-it[bot]@users.noreply.github.com> Date: Sat, 8 Jun 2024 02:24:29 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=93=9C=F0=9F=A4=96=20Added=20by=20blu?= =?UTF-8?q?rb=5Fit.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../2024-06-08-02-24-28.gh-issue-120258.EwD7PH.rst | 1 + 1 file changed, 1 insertion(+) create mode 100644 Misc/NEWS.d/next/Core and Builtins/2024-06-08-02-24-28.gh-issue-120258.EwD7PH.rst diff --git a/Misc/NEWS.d/next/Core and Builtins/2024-06-08-02-24-28.gh-issue-120258.EwD7PH.rst b/Misc/NEWS.d/next/Core and Builtins/2024-06-08-02-24-28.gh-issue-120258.EwD7PH.rst new file mode 100644 index 000000000000000..18617afdc17939f --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/2024-06-08-02-24-28.gh-issue-120258.EwD7PH.rst @@ -0,0 +1 @@ +Correct MIME type for Advanced SubStation files.