无法识别langCode时置为und (#508)
This commit is contained in:
parent
312325ca18
commit
b3d95963db
|
@ -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();
|
||||||
|
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue