Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ private async Task ProduceEntriesAsync(ChannelWriter<Task<StreamedEntry>> 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}")
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
}