diff --git a/src/Zilean.Scraper/Features/Ingestion/Processing/StreamedEntryProcessor.cs b/src/Zilean.Scraper/Features/Ingestion/Processing/StreamedEntryProcessor.cs index b1ee95a..b73ba83 100644 --- a/src/Zilean.Scraper/Features/Ingestion/Processing/StreamedEntryProcessor.cs +++ b/src/Zilean.Scraper/Features/Ingestion/Processing/StreamedEntryProcessor.cs @@ -38,8 +38,8 @@ private async Task ProduceEntriesAsync(ChannelWriter> writer var fullUrl = _currentEndpoint.EndpointType switch { - GenericEndpointType.Zurg => $"{_currentEndpoint.Url}/debug/torrents", - GenericEndpointType.Zilean => $"{_currentEndpoint.Url}/torrents/all", + GenericEndpointType.Zurg => $"{_currentEndpoint.Url}{_configuration.Ingestion.ZurgEndpointSuffix}", + GenericEndpointType.Zilean => $"{_currentEndpoint.Url}{_configuration.Ingestion.ZileanEndpointSuffix}", GenericEndpointType.Generic => $"{_currentEndpoint.Url}{_currentEndpoint.EndpointSuffix}", _ => throw new InvalidOperationException($"Unknown endpoint type: {_currentEndpoint.EndpointType}") }; diff --git a/src/Zilean.Shared/Features/Configuration/LoggingConfiguration.cs b/src/Zilean.Shared/Features/Configuration/LoggingConfiguration.cs index 04fdcc8..df7f4fa 100644 --- a/src/Zilean.Shared/Features/Configuration/LoggingConfiguration.cs +++ b/src/Zilean.Shared/Features/Configuration/LoggingConfiguration.cs @@ -35,6 +35,9 @@ public static IConfigurationBuilder AddLoggingConfiguration(this IConfigurationB private static void EnsureExists(string configurationFolderPath) { var loggingPath = Path.Combine(configurationFolderPath, ConfigurationLiterals.LoggingConfigFilename); - File.WriteAllText(loggingPath, DefaultLoggingContents); + if (!File.Exists(loggingPath)) + { + File.WriteAllText(loggingPath, DefaultLoggingContents); + } } }