fix: fixed search of tidal tracks using WebUtils
This commit is contained in:
@@ -44,13 +44,21 @@ public static class Program
|
||||
private static void LoadConfig()
|
||||
{
|
||||
Logger.LogInformation("Loading config...");
|
||||
IConfigurationRoot configuration = new ConfigurationBuilder()
|
||||
.AddJsonFile("telegramconfig.json", optional: false)
|
||||
#if DEBUG
|
||||
.AddJsonFile("telegramconfig.local.json", true, true)
|
||||
#endif
|
||||
.Build();
|
||||
Config = configuration.GetSection("AppSettings").Get<AppSettings>() ?? throw new NullReferenceException();
|
||||
var configuration = new ConfigurationBuilder();
|
||||
|
||||
if (Environment.GetEnvironmentVariable("ASPNETCORE_ENVIRONMENT") == "Development")
|
||||
{
|
||||
configuration.AddJsonFile("telegramconfig.local.json", false);
|
||||
Logger.LogInformation("Local config loaded.");
|
||||
}
|
||||
else
|
||||
{
|
||||
configuration.AddJsonFile("telegramconfig.json", false);
|
||||
}
|
||||
|
||||
var configurationRoot = configuration.Build();
|
||||
|
||||
Config = configurationRoot.GetSection("AppSettings").Get<AppSettings>() ?? throw new NullReferenceException();
|
||||
}
|
||||
|
||||
private static CancellationTokenSource LoadBot()
|
||||
|
||||
Reference in New Issue
Block a user