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}\"");