mirror of
https://github.com/Cleanuparr/Cleanuparr.git
synced 2026-06-10 14:55:34 -04:00
updated some names
This commit is contained in:
@@ -33,7 +33,7 @@ public class DownloadCleanerConfigDto
|
||||
/// <summary>
|
||||
/// Target category for unlinked downloads
|
||||
/// </summary>
|
||||
public string UnlinkedTargetCategory { get; set; } = "cleanuperr-unlinked";
|
||||
public string UnlinkedTargetCategory { get; set; } = "cleanuparr-unlinked";
|
||||
|
||||
/// <summary>
|
||||
/// Whether to use tags instead of categories for unlinked downloads
|
||||
|
||||
@@ -18,7 +18,7 @@ public sealed record DownloadCleanerConfig : IJobConfig
|
||||
|
||||
public string IgnoredDownloadsPath { get; init; } = string.Empty;
|
||||
|
||||
public string UnlinkedTargetCategory { get; init; } = "cleanuperr-unlinked";
|
||||
public string UnlinkedTargetCategory { get; init; } = "cleanuparr-unlinked";
|
||||
|
||||
public bool UnlinkedUseTag { get; init; }
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ public class DataContext : DbContext
|
||||
{
|
||||
if (!optionsBuilder.IsConfigured)
|
||||
{
|
||||
var dbPath = Path.Combine(ConfigurationPathProvider.GetSettingsPath(), "cleanuparr.db");
|
||||
var dbPath = Path.Combine(ConfigurationPathProvider.GetConfigPath(), "cleanuparr.db");
|
||||
optionsBuilder.UseSqlite($"Data Source={dbPath}");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -65,9 +65,9 @@ public static class ApiDI
|
||||
app.UseSwagger();
|
||||
app.UseSwaggerUI(options =>
|
||||
{
|
||||
options.SwaggerEndpoint("/swagger/v1/swagger.json", "Cleanuperr API v1");
|
||||
options.SwaggerEndpoint("/swagger/v1/swagger.json", "Cleanuparr API v1");
|
||||
options.RoutePrefix = "swagger";
|
||||
options.DocumentTitle = "Cleanuperr API Documentation";
|
||||
options.DocumentTitle = "Cleanuparr API Documentation";
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -79,7 +79,7 @@ public static class LoggingDI
|
||||
|
||||
// Add main log file
|
||||
logConfig.WriteTo.File(
|
||||
path: Path.Combine(logsPath, "cleanuperr-.txt"),
|
||||
path: Path.Combine(logsPath, "cleanuparr-.txt"),
|
||||
formatter: new ExpressionTemplate(fileTemplate),
|
||||
fileSizeLimitBytes: 10L * 1024 * 1024,
|
||||
rollingInterval: RollingInterval.Day,
|
||||
@@ -93,7 +93,7 @@ public static class LoggingDI
|
||||
.MinimumLevel.Override("Microsoft", LogEventLevel.Warning)
|
||||
.MinimumLevel.Override("Quartz", LogEventLevel.Warning)
|
||||
.MinimumLevel.Override("System.Net.Http.HttpClient", LogEventLevel.Error)
|
||||
.Enrich.WithProperty("ApplicationName", "cleanuperr");
|
||||
.Enrich.WithProperty("ApplicationName", "Cleanuparr");
|
||||
|
||||
return logConfig;
|
||||
}
|
||||
|
||||
@@ -16,8 +16,8 @@ public static class HostExtensions
|
||||
|
||||
logger.LogInformation(
|
||||
version is null
|
||||
? "cleanuperr version not detected"
|
||||
: $"cleanuperr v{version.Major}.{version.Minor}.{version.Build}"
|
||||
? "Cleanuparr version not detected"
|
||||
: $"Cleanuparr v{version.Major}.{version.Minor}.{version.Build}"
|
||||
);
|
||||
|
||||
logger.LogInformation("timezone: {tz}", TimeZoneInfo.Local.DisplayName);
|
||||
|
||||
@@ -53,7 +53,7 @@ logger.WithCategory(LoggingCategoryConstants.Jobs)
|
||||
|
||||
Logs are stored in the following locations:
|
||||
|
||||
- **Main log file**: `{config_path}/logs/cleanuperr-.txt`
|
||||
- **Main log file**: `{config_path}/logs/cleanuparr-.txt`
|
||||
- **Category logs**: `{config_path}/logs/{category}-.txt` (e.g., `system-.txt`, `api-.txt`)
|
||||
|
||||
The log files use rolling file behavior:
|
||||
|
||||
@@ -9,7 +9,7 @@ public class NotifiarrPayload
|
||||
public class NotifiarrNotification
|
||||
{
|
||||
public bool Update { get; set; }
|
||||
public string Name => "Cleanuperr";
|
||||
public string Name => "Cleanuparr";
|
||||
public int? Event { get; set; }
|
||||
}
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ public class NotifiarrProvider : NotificationProvider
|
||||
|
||||
private const string WarningColor = "f0ad4e";
|
||||
private const string ImportantColor = "bb2124";
|
||||
private const string Logo = "https://github.com/flmorg/cleanuperr/blob/main/Logo/48.png?raw=true";
|
||||
private const string Logo = "https://github.com/Cleanuparr/Cleanuparr/blob/main/Logo/48.png?raw=true";
|
||||
|
||||
public override NotifiarrConfig Config => _config.Notifiarr;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user