From b3d95963dbd91c86c6d79522e5e81ad3976836b6 Mon Sep 17 00:00:00 2001 From: nilaoda Date: Sun, 24 Nov 2024 18:38:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A0=E6=B3=95=E8=AF=86=E5=88=ABlangCode?= =?UTF-8?q?=E6=97=B6=E7=BD=AE=E4=B8=BAund=20(#508)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/N_m3u8DL-RE/CommandLine/CommandInvoker.cs | 2 +- src/N_m3u8DL-RE/Util/LanguageCodeUtil.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/N_m3u8DL-RE/CommandLine/CommandInvoker.cs b/src/N_m3u8DL-RE/CommandLine/CommandInvoker.cs index f65b56a..d1ceae5 100644 --- a/src/N_m3u8DL-RE/CommandLine/CommandInvoker.cs +++ b/src/N_m3u8DL-RE/CommandLine/CommandInvoker.cs @@ -17,7 +17,7 @@ namespace N_m3u8DL_RE.CommandLine; internal partial class CommandInvoker { - public const string VERSION_INFO = "N_m3u8DL-RE (Beta version) 20241123"; + public const string VERSION_INFO = "N_m3u8DL-RE (Beta version) 20241124"; [GeneratedRegex("((best|worst)\\d*|all)")] private static partial Regex ForStrRegex(); diff --git a/src/N_m3u8DL-RE/Util/LanguageCodeUtil.cs b/src/N_m3u8DL-RE/Util/LanguageCodeUtil.cs index 8e5546d..d0016a2 100644 --- a/src/N_m3u8DL-RE/Util/LanguageCodeUtil.cs +++ b/src/N_m3u8DL-RE/Util/LanguageCodeUtil.cs @@ -520,7 +520,7 @@ sr;srp if (string.IsNullOrEmpty(outputFile.Description)) outputFile.Description = outputFile.MediaType == Common.Enum.MediaType.SUBTITLES ? lang.Description : lang.DescriptionAudio; } - else if (outputFile.LangCode == null) + else { outputFile.LangCode = "und"; // 无法识别直接置为und }