From ed4f1b196e34b02d8d180a8a5c6d05be49ae3e25 Mon Sep 17 00:00:00 2001 From: nilaoda Date: Sat, 27 Aug 2022 00:04:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E9=BB=98=E8=AE=A4format?= =?UTF-8?q?=E8=A7=A3=E6=9E=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/N_m3u8DL-RE/CommandLine/CommandInvoker.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/N_m3u8DL-RE/CommandLine/CommandInvoker.cs b/src/N_m3u8DL-RE/CommandLine/CommandInvoker.cs index ae7567f..e879a27 100644 --- a/src/N_m3u8DL-RE/CommandLine/CommandInvoker.cs +++ b/src/N_m3u8DL-RE/CommandLine/CommandInvoker.cs @@ -102,7 +102,7 @@ namespace N_m3u8DL_RE.CommandLine var v = result.Tokens.First().Value; var p = new ComplexParamParser(v); //混流格式 - var format = p.GetValue("format") ?? v; //若未获取到,直接整个字符串作为format解析 + var format = p.GetValue("format") ?? v.Split(':')[0]; //若未获取到,直接:前的字符串作为format解析 if (format != "mp4" && format != "mkv") { result.ErrorMessage = $"format={format} not valid";