Skip to content

Commit

Permalink
无法识别langCode时置为und (#508)
Browse files Browse the repository at this point in the history
  • Loading branch information
nilaoda authored Nov 24, 2024
1 parent 312325c commit b3d9596
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/N_m3u8DL-RE/CommandLine/CommandInvoker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion src/N_m3u8DL-RE/Util/LanguageCodeUtil.cs
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ public static void ConvertLangCodeAndDisplayName(OutputFile outputFile)
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
}
Expand Down

0 comments on commit b3d9596

Please sign in to comment.