From 79b4b6846912879128704b4807f21541d57c1009 Mon Sep 17 00:00:00 2001 From: nilaoda Date: Tue, 19 Jul 2022 00:55:42 +0800 Subject: [PATCH] =?UTF-8?q?=E5=86=8D=E4=BC=98=E5=8C=96=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E5=90=8E=E7=BC=80=E6=8E=A8=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/N_m3u8DL-RE.Parser/Extractor/DASHExtractor2.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/N_m3u8DL-RE.Parser/Extractor/DASHExtractor2.cs b/src/N_m3u8DL-RE.Parser/Extractor/DASHExtractor2.cs index f12d822..abb2111 100644 --- a/src/N_m3u8DL-RE.Parser/Extractor/DASHExtractor2.cs +++ b/src/N_m3u8DL-RE.Parser/Extractor/DASHExtractor2.cs @@ -423,12 +423,13 @@ namespace N_m3u8DL_RE.Parser.Extractor } else { + //修复mp4类型字幕 if (streamSpec.MediaType == MediaType.SUBTITLES && streamSpec.Extension == "mp4") { streamSpec.Extension = "m4s"; } //分片默认后缀m4s - if (streamSpec.Extension == null || streamSpec.Playlist.MediaParts.Sum(x => x.MediaSegments.Count) > 1) + if (streamSpec.MediaType != MediaType.SUBTITLES && (streamSpec.Extension == null || streamSpec.Playlist.MediaParts.Sum(x => x.MediaSegments.Count) > 1)) { streamSpec.Extension = "m4s"; }