优化TS识别
This commit is contained in:
parent
19487c4562
commit
142b25eb00
|
@ -96,8 +96,8 @@ namespace N_m3u8DL_RE.Common.Util
|
||||||
|
|
||||||
private static bool CheckMPEG2TS(HttpResponseMessage? webResponse)
|
private static bool CheckMPEG2TS(HttpResponseMessage? webResponse)
|
||||||
{
|
{
|
||||||
var mediaType = webResponse?.Content.Headers.ContentType?.MediaType;
|
var mediaType = webResponse?.Content.Headers.ContentType?.MediaType?.ToLower();
|
||||||
return mediaType == "video/ts" || mediaType == "video/mp2t";
|
return mediaType == "video/ts" || mediaType == "video/mp2t" || mediaType == "video/mpeg";
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
Loading…
Reference in New Issue