开启下载完成后混流时 自动启用二进制合并

This commit is contained in:
nilaoda 2023-06-18 12:29:48 +08:00
parent c05dbabd4e
commit 4c608198d7
3 changed files with 14 additions and 0 deletions

View File

@ -15,6 +15,7 @@ namespace N_m3u8DL_RE.Common.Resource
public static string autoBinaryMerge3 { get => GetText("autoBinaryMerge3"); } public static string autoBinaryMerge3 { get => GetText("autoBinaryMerge3"); }
public static string autoBinaryMerge4 { get => GetText("autoBinaryMerge4"); } public static string autoBinaryMerge4 { get => GetText("autoBinaryMerge4"); }
public static string autoBinaryMerge5 { get => GetText("autoBinaryMerge5"); } public static string autoBinaryMerge5 { get => GetText("autoBinaryMerge5"); }
public static string autoBinaryMerge6 { get => GetText("autoBinaryMerge6"); }
public static string badM3u8 { get => GetText("badM3u8"); } public static string badM3u8 { get => GetText("badM3u8"); }
public static string binaryMerge { get => GetText("binaryMerge"); } public static string binaryMerge { get => GetText("binaryMerge"); }
public static string checkingLast { get => GetText("checkingLast"); } public static string checkingLast { get => GetText("checkingLast"); }

View File

@ -70,6 +70,12 @@ namespace N_m3u8DL_RE.Common.Resource
zhTW: "檢測到杜比視界內容,混流功能已禁用", zhTW: "檢測到杜比視界內容,混流功能已禁用",
enUS: "Dolby Vision content is detected, mux after done is automatically disabled" enUS: "Dolby Vision content is detected, mux after done is automatically disabled"
), ),
["autoBinaryMerge6"] = new TextContainer
(
zhCN: "你已开启下载完成后混流,自动开启二进制合并",
zhTW: "你已開啟下載完成後混流,自動開啟二進制合併",
enUS: "MuxAfterDone is detected, binary merging is automatically enabled"
),
["badM3u8"] = new TextContainer ["badM3u8"] = new TextContainer
( (
zhCN: "错误的m3u8", zhCN: "错误的m3u8",

View File

@ -319,6 +319,13 @@ namespace N_m3u8DL_RE
Logger.InfoMarkUp(ResString.saveName + $"[deepskyblue1]{option.SaveName.EscapeMarkup()}[/]"); Logger.InfoMarkUp(ResString.saveName + $"[deepskyblue1]{option.SaveName.EscapeMarkup()}[/]");
//开始MuxAfterDone后自动使用二进制版
if (!option.BinaryMerge && option.MuxAfterDone)
{
option.BinaryMerge = true;
Logger.WarnMarkUp($"[darkorange3_1]{ResString.autoBinaryMerge6}[/]");
}
//下载配置 //下载配置
var downloadConfig = new DownloaderConfig() var downloadConfig = new DownloaderConfig()
{ {