From 2e6d9ec7a090aade7aab024095bee7ef799e908d Mon Sep 17 00:00:00 2001 From: nilaoda Date: Mon, 8 Aug 2022 23:01:36 +0800 Subject: [PATCH] bug fix --- src/N_m3u8DL-RE/Util/MergeUtil.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/N_m3u8DL-RE/Util/MergeUtil.cs b/src/N_m3u8DL-RE/Util/MergeUtil.cs index 779793d..51b9504 100644 --- a/src/N_m3u8DL-RE/Util/MergeUtil.cs +++ b/src/N_m3u8DL-RE/Util/MergeUtil.cs @@ -88,9 +88,6 @@ namespace N_m3u8DL_RE.Util case ("TS"): command.Append("\" -map 0 -c copy -y -f mpegts -bsf:v h264_mp4toannexb \"" + outputPath + ".ts\""); break; - case ("VTT"): - command.Append("\" -map 0 -y \"" + outputPath + ".srt\""); //Convert To Srt - break; case ("EAC3"): command.Append("\" -map 0:a -c copy -y \"" + outputPath + ".eac3\""); break; @@ -112,7 +109,7 @@ namespace N_m3u8DL_RE.Util UseShellExecute = false })!.WaitForExit(); - if (File.Exists(outputPath) && new FileInfo(outputPath).Length > 0) + if (File.Exists($"{outputPath}.{muxFormat}") && new FileInfo($"{outputPath}.{muxFormat}").Length > 0) return true; return false;