优化TS识别

This commit is contained in:
nilaoda 2022-12-06 23:07:30 +08:00
parent 19487c4562
commit 142b25eb00
1 changed files with 2 additions and 2 deletions

View File

@ -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";
}
/// <summary>