From 167d6640e33a02ba83f4444818bcbb7a6aba28b5 Mon Sep 17 00:00:00 2001 From: sim0n00ps Date: Sun, 14 Dec 2025 18:47:18 +0000 Subject: [PATCH] Move DisableBrowserAuth to Auth --- OF DL/Program.cs | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/OF DL/Program.cs b/OF DL/Program.cs index fcdba0c..f9a3a6b 100644 --- a/OF DL/Program.cs +++ b/OF DL/Program.cs @@ -131,6 +131,10 @@ public class Program if (jsonConfig != null) { var hoconConfig = new StringBuilder(); + hoconConfig.AppendLine("# Auth"); + hoconConfig.AppendLine("Auth {"); + hoconConfig.AppendLine($" DisableBrowserAuth = \"{jsonConfig.DisableBrowserAuth.ToString().ToLower()}\""); + hoconConfig.AppendLine("}"); hoconConfig.AppendLine("# External Tools"); hoconConfig.AppendLine("External {"); hoconConfig.AppendLine($" FFmpegPath = \"{jsonConfig.FFmpegPath}\""); @@ -255,7 +259,7 @@ public class Program config = new Entities.Config { //Auth - DisableBrowserAuth = hoconConfig.GetBoolean("DisableBrowserAuth"), + DisableBrowserAuth = hoconConfig.GetBoolean("Auth.DisableBrowserAuth"), // FFmpeg Settings FFmpegPath = hoconConfig.GetString("External.FFmpegPath"), @@ -375,7 +379,9 @@ public class Program Entities.Config jsonConfig = new Entities.Config(); var hoconConfig = new StringBuilder(); hoconConfig.AppendLine("# Auth"); - hoconConfig.AppendLine($"DisableBrowserAuth = {jsonConfig.DisableBrowserAuth.ToString().ToLower()}"); + hoconConfig.AppendLine("Auth {"); + hoconConfig.AppendLine($" DisableBrowserAuth = \"{jsonConfig.DisableBrowserAuth.ToString().ToLower()}\""); + hoconConfig.AppendLine("}"); hoconConfig.AppendLine("# External Tools"); hoconConfig.AppendLine("External {"); hoconConfig.AppendLine($" FFmpegPath = \"{jsonConfig.FFmpegPath}\""); @@ -2950,7 +2956,9 @@ public class Program var hoconConfig = new StringBuilder(); hoconConfig.AppendLine("# Auth"); - hoconConfig.AppendLine($"DisableBrowserAuth = {newConfig.DisableBrowserAuth.ToString().ToLower()}"); + hoconConfig.AppendLine("Auth {"); + hoconConfig.AppendLine($" DisableBrowserAuth = \"{newConfig.DisableBrowserAuth.ToString().ToLower()}\""); + hoconConfig.AppendLine("}"); hoconConfig.AppendLine("# External Tools"); hoconConfig.AppendLine("External {"); hoconConfig.AppendLine($" FFmpegPath = \"{newConfig.FFmpegPath}\""); @@ -3110,7 +3118,9 @@ public class Program var hoconConfig = new StringBuilder(); hoconConfig.AppendLine("# Auth"); - hoconConfig.AppendLine($"DisableBrowserAuth = {newConfig.DisableBrowserAuth.ToString().ToLower()}"); + hoconConfig.AppendLine("Auth {"); + hoconConfig.AppendLine($" DisableBrowserAuth = \"{newConfig.DisableBrowserAuth.ToString().ToLower()}\""); + hoconConfig.AppendLine("}"); hoconConfig.AppendLine("# External Tools"); hoconConfig.AppendLine("External {"); hoconConfig.AppendLine($" FFmpegPath = \"{newConfig.FFmpegPath}\"");