无法识别langCode时置为und (#508)

This commit is contained in:
nilaoda 2024-11-24 18:38:03 +08:00 committed by GitHub
parent 312325ca18
commit b3d95963db
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@ namespace N_m3u8DL_RE.CommandLine;
internal partial class CommandInvoker 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)")] [GeneratedRegex("((best|worst)\\d*|all)")]
private static partial Regex ForStrRegex(); private static partial Regex ForStrRegex();

View File

@ -520,7 +520,7 @@ sr;srp
if (string.IsNullOrEmpty(outputFile.Description)) if (string.IsNullOrEmpty(outputFile.Description))
outputFile.Description = outputFile.MediaType == Common.Enum.MediaType.SUBTITLES ? lang.Description : lang.DescriptionAudio; outputFile.Description = outputFile.MediaType == Common.Enum.MediaType.SUBTITLES ? lang.Description : lang.DescriptionAudio;
} }
else if (outputFile.LangCode == null) else
{ {
outputFile.LangCode = "und"; // 无法识别直接置为und outputFile.LangCode = "und"; // 无法识别直接置为und
} }