From 142b25eb005e9198e109b79cc1d1a8b75aa1af55 Mon Sep 17 00:00:00 2001 From: nilaoda Date: Tue, 6 Dec 2022 23:07:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96TS=E8=AF=86=E5=88=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/N_m3u8DL-RE.Common/Util/HTTPUtil.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/N_m3u8DL-RE.Common/Util/HTTPUtil.cs b/src/N_m3u8DL-RE.Common/Util/HTTPUtil.cs index 2fedae8..b48ad60 100644 --- a/src/N_m3u8DL-RE.Common/Util/HTTPUtil.cs +++ b/src/N_m3u8DL-RE.Common/Util/HTTPUtil.cs @@ -96,8 +96,8 @@ namespace N_m3u8DL_RE.Common.Util private static bool CheckMPEG2TS(HttpResponseMessage? webResponse) { - var mediaType = webResponse?.Content.Headers.ContentType?.MediaType; - return mediaType == "video/ts" || mediaType == "video/mp2t"; + var mediaType = webResponse?.Content.Headers.ContentType?.MediaType?.ToLower(); + return mediaType == "video/ts" || mediaType == "video/mp2t" || mediaType == "video/mpeg"; } ///