From dfe942d3cf4a60c06a530c64793981bfff5fe9fd Mon Sep 17 00:00:00 2001 From: Jake Mannens Date: Mon, 30 Mar 2026 04:39:14 +1100 Subject: v0.5a --- Services/ConfigService.cs | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'Services/ConfigService.cs') diff --git a/Services/ConfigService.cs b/Services/ConfigService.cs index 8460fd0..d2d1a06 100644 --- a/Services/ConfigService.cs +++ b/Services/ConfigService.cs @@ -1,11 +1,12 @@ namespace HyperBooru.Services; public interface IConfigService { - public string DataPath { get; } - public string DbConnectionString { get; } - public string MediaBasePath { get; } - public string ThumbnailBasePath { get; } - public bool EnableOcr { get; } + public string DataPath { get; } + public string DbConnectionString { get; } + public string MediaBasePath { get; } + public string ThumbnailBasePath { get; } + public string ConvertedMediaBasePath { get; } + public bool EnableOcr { get; } } public class ConfigService : IConfigService { @@ -47,6 +48,9 @@ public class ConfigService : IConfigService { public string ThumbnailBasePath => Path.Join(DataPath, "thumb"); + public string ConvertedMediaBasePath => + Path.Join(DataPath, "converted"); + public bool EnableOcr => bool.TryParse(config["DisableOcr"], out bool x) ? !x : true; -- cgit v1.3